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.