Home > other >  Small white inquired: the crawler, such a structure is how to extract
Small white inquired: the crawler, such a structure is how to extract

Time:10-04



As shown in figure, need to extract the basket inside information,

Try to use Json, but complains: Json. The decoder. JSONDecodeError: Expecting value: line 3 column 1 (char (4), and the value of the dictionary last layer contains tags can't remove,


Knocked on half of the attached code:

CodePudding user response:

Regular expression?

CodePudding user response:

The class name + regular points minutes away, isn't it

CodePudding user response:

Here is my complete code, has been an error, as for the above mentioned regular expressions, web request on the basis of the great god can play a piece of code screenshots? Thank you, I really is a small white,

CodePudding user response:

You put the complete code posted in words, help you to test the test again

CodePudding user response:

reference 3 floor water Tsui classmates reply:
here are my complete code, has been an error, as for the above mentioned regular expressions, web request on the basis of the great god can play a piece of code screenshots? Thank you, I really is a small white,

 the from simplified_scrapy. Simplified_doc import SimplifiedDoc 
For the row in rows:
Value=https://bbs.csdn.net/topics/SimplifiedDoc (row [' TotalCurrentClaimAmount ']). The span. The text
Print (value)
  • Related