摘要:
在上两节当中,我们爬取了360图片,但是我们需要将图片下载下来,这将如何下载和存储呢? 下边叙述一下三种情况:1、将图片下载后存储到MongoDB数据库;2、将图片下载后存储在MySQL数据库;3、将图片下载到本地文件 话不多说,直接上代码: 1、通过item定义存储字段 2、配置settings文 阅读全文
posted @ 2019-04-14 21:57
懒惰的小松鼠
阅读(1127)
评论(0)
推荐(1)
摘要:
# -*- coding: utf-8 -*-# 在这里定义蜘蛛中间件的模型# Define here the models for your spider middleware## See documentation in:# https://doc.scrapy.org/en/latest/to 阅读全文
posted @ 2019-04-14 21:14
懒惰的小松鼠
阅读(1464)
评论(0)
推荐(1)
摘要:
# -*- coding: utf-8 -*-# Scrapy settings for maoyan project## For simplicity, this file contains only settings considered important or# commonly used. You can find more settings consulting the documen... 阅读全文
posted @ 2019-04-14 21:12
懒惰的小松鼠
阅读(566)
评论(0)
推荐(0)

浙公网安备 33010602011771号