Python Requests doesn't get the full content from a shtml page

303 views Asked by At

I am new to Python and try to grab the table from a shtml page. When I used requests.get(url), the result was only a part of the full source code I could see from Chrome Browser and "hq_table" was not in it.

This is the code:

import requests

url =  "http://www.xinfadi.com.cn/marketanalysis/2/list/1.shtml"
page_content = requests.get(url)
print(page_content.text)

Although it is short, I am still stuck here. Can anyone give me a hint? Thank you in advance.

0

There are 0 answers