Using requests to realize web page login and crawling, we can get < Response [200] >.

I originally wanted to use requests to crawl the json data in our cluepoints page. The style is as follows:

this site needs to be logged in. My code is as follows:

 Traceback (most recent call last):
  File "<pyshell-sharp5>", line 1, in <module>
    s.json()
AttributeError: "Session" object has no attribute "json"

ask the seniors to give us some advice. In fact, I just want to grab the data in the above picture to json format.

Mar.12,2021

  

res=s.post ("https://login.cluepoints.com/",data={"user":"xwei","passdw":"Lovelinbo19910716"})

Menu