Regarding the correction method for irregular json format when crawling web pages loaded by ajax, use the replace method.

Insert image description here
As shown in the above picture, some escape characters "\", "\\\u002F", etc. can be replaced by using the replace method.
Insert image description here
Here, we obtain part of the data in the above picture and then adjust the format. The result is as shown in the figure:
Insert image description here

Guess you like

Origin blog.csdn.net/weixin_43810415/article/details/99653105