Thursday, 31 January 2019

How to get the web data using requests and pyqt5?

I want to get the data from http://www.sse.com.cn/assortment/stock/list/info/announcement/index.shtml

You can see five boxes. I would like to input the information as shown in the figure. enter image description here

I tried to use requests

url = r'http://www.sse.com.cn/assortment/stock/list/info/announcement/index.shtml'
payload = {'inputCode': '600000', 'single_select_2':'DQGG', 'start_date': '2018-06-01', 'end_date':'2019-01-23'}
response = requests.post(url, data = payload)

However, I cannot get the correct result.

What should be the correct approach?

How to do it using pyqt5?



from How to get the web data using requests and pyqt5?

No comments:

Post a Comment