Return results from python to php

Passed an array to python from php
Code was working fine until import requests_html was added.
Not anything is being returned after this import statement.

If import requests_html is commented, the below values are being returned.

!/usr/bin/env python

import sys
import json
import requests_html
from requests_html import HTMLSession
print('new_url')

Please suggest.

1 Reply

Try encoding the array as JSON at the source. Python/PHP has a large set of facilities for dealing with JSON formatted data. This kind of stuff is why JSON was invented.

-- sw

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct