'Error when getting value from a php file with requests
Im using the requests libary to get data from a website but when using .get it returns a error page.
import requests
ul = "https://botboy1.000webhostapp.com/gen.php"
hd = {"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36"}
got = requests.get(ul, headers=hd, verify=False)
print(got.text)
If you go to that website, it shows "botboy is the best website" but if you use .get, it returns an iframe leading to an error page.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
