yoyzhou / weibo_scrapy

WEIBO_SCRAPY is a Multi-Threading SINA WEIBO data extraction Framework in Python.
http://yoyzhou.github.io/blog/2013/04/08/weibo-scrapy-framework-with-multi-threading/
154 stars 80 forks source link

weibo login #1

Open dllen opened 9 years ago

dllen commented 9 years ago

p = re.compile('location.replace(\“(.?)\”)') 替换成 p = re.compile(r'location.replace(\'(.?)\')')

yoyzhou commented 9 years ago

多谢指出,这个问题是微博服务器返回的有时用双引号,有时用单引号 我增加了一个单引号的正则,如果OK的话,告诉我close this issue.

谢谢。

itsniuqiang commented 7 years ago

如果可以的话,能麻烦您稍微做一点解释么?因为在现存的代码中没有看到在何处进行了实际的爬取。anyway,对爬虫的外围设施挺有帮助的,thx~