资源简介
模拟登录,用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()
评论
共有 条评论