0

I am new to web service. Say I have a page url like below: http://xxx/xx/post?id=9898

If I use urllib.request.urlopen() method to download this url's html source, the html I get is different from what I see when open this page in a browser.

The difference is, when I open it in browser, I guess some JS code will run (with the given url parameter) and dynamically fetch and generate a lot of contents. But when I do urlopen(), basically this fetching and generating process is not triggered.

I am not sure if the term dynamic/static is correct to use here. Correct me if I am wrong, so urlopen() can only download static html page, if it is dynamic page, it will not work?

Can anyone show me how to download the html of fully generated version of a web page?

Acton
  • 255
  • 4
  • 13

0 Answers0