Hi. First of all thanks in advance because of all amazing features! I need this module to use Telegram bot API as the name of module tell this too if I can. It can be installed by pip3 install python-telegram-bot also to kill two birds with one stone, currently I added
#!/usr/bin/pythonat the first line of my .py script, but I want to use Python 3.7, how should I edit this line to use Python 3.7? below lines doesn't works:
#!/usr/bin/python3.7
#!/usr/local/python3.7
#!/usr/local/bin/python3.7note that I Copy-paste the code into cPanel built-in editor and im not using windows (so there shouldn't be line-ending problem as I think!) code is here, located in Public_html :
#!/usr/bin/python
import requests
print "Content-type: text/html\n\n"
print "Python is working fine.\r\n <br>"
contents = requests.get('https://random.dog/woof.json').json()
url = contents['url']
print ('<img src="'+url+'">');thanks again.