关于用scrapy爬虫的问题!

2025-05-05 17:19:12
推荐回答(1个)
回答1:

pat=re.compile(r'"content":"(.+?)"')
result=re.findall(pat,s)#s表示整个网页文本