Home > other >  On obtaining the number of jingdong commodity evaluation problem
On obtaining the number of jingdong commodity evaluation problem

Time:03-19

 
The import json
Url="https://club.jd.com/comment/productCommentSummaries.action? ReferenceIds=8392721
"Headers={
'the user-agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64. X64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36 ',
'Accept' : 'text/HTML, application/XHTML + XML, application/XML. Q=0.9, image/webp image/apng, */*; Q=0.8, application/signed - exchange; V=b3 ',
'the Accept - Language' : 'useful - CN, useful; Q=0.9 ',
}
R=requests. Get (url, headers)
Print (r.t ext)
Js=json. Loads (r.t ext)
Print (js)


Such mistakes
Expecting the -raise JSONDecodeError (" value ", s, err... value) from None
Json. The decoder. JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Not print anything

CodePudding user response:

Print (r.t ext) what also have no
  • Related