資源簡介
模擬登錄,用scrapy+selenium+PhantomJS爬取知乎話題的評論,并且做成關鍵字詞云展示
代碼片段和文件信息
#?-*-?coding:?utf-8?-*-
#?Define?here?the?models?for?your?scraped?items
#
#?See?documentation?in:
#?http://doc.scrapy.org/en/latest/topics/items.html
import?scrapy
class?SpderspyItem(scrapy.Item):
????username?=?scrapy.Field()
????support?=?scrapy.Field()
????content?=?scrapy.Field()
????
評論
共有 條評論