启动方式:
写一个启动文件,与配置文件同级
from scrapy.cmdline import execute import sys,os sys.path.append(os.path.dirname(os.path.abspath(__file__))) execute(['scrapy','crawl','meitu'])
# ['scrapy','crawl','meitu'] 前俩个固定的 最后一个是爬虫文件名
设为首页 加入收藏 |
|
当前位置: |
TOP | ||||||||||
scrapy 使用
|
||||||||||
最新文章 |
热门文章 |
Hot 文章 |
Python | ||||||||||
|
||||||||||
C 语言 | ||||||||||
|
||||||||||
C++基础 | ||||||||||
|
||||||||||
大数据基础 | ||||||||||
|
||||||||||
linux编程基础 | ||||||||||
|
||||||||||
C/C++面试题目 | ||||||||||
|
||||||||||