May-01-2018, 11:09 AM
(May-01-2018, 11:04 AM)Larz60+ Wrote:Quote:However, when calling from requests, it does not generate the HTML page that can be obtained by clicking the link.You are not saving the file.
add after line 3:
with open('yourfilename', 'w') as f: f.write(r.text)(of course, replace 'yourfilername' with a valid .html file name)
The OP probably meant - page is not rendered properly because of Javascript. Try https://html.python-requests.org/ which can render the page with Chromium.