Python爬虫框架Scrapy实例(三)数据存储到MongoDB任务目标:爬取豆瓣电影top250,将数据存储到MongoDB中. items.py文件复制代码# -*- coding: utf-8 -*-import scrapy class DoubanItem(scrapy.Item): # define the fields for your item here like: # 电影名 title = scrapy.Field() # 基本信息 bd = scrapy.Field()…