Open dllen opened 9 years ago
p = re.compile('location.replace(\“(.?)\”)') 替换成 p = re.compile(r'location.replace(\'(.?)\')')
多谢指出,这个问题是微博服务器返回的有时用双引号,有时用单引号 我增加了一个单引号的正则,如果OK的话,告诉我close this issue.
谢谢。
如果可以的话,能麻烦您稍微做一点解释么?因为在现存的代码中没有看到在何处进行了实际的爬取。anyway,对爬虫的外围设施挺有帮助的,thx~
p = re.compile('location.replace(\“(.?)\”)') 替换成 p = re.compile(r'location.replace(\'(.?)\')')