Skip to content

BerlinChan/autonews-scrapy

Repository files navigation

Auto News 新闻监控系统爬虫

安装

  • install pyenv: brew pyenv
  • install virtualenv:
  • install python: $ pyenv install 3.6.1
  • install requirements: $ pip install -r requirements.txt
  • create new virtualenv: $ pyenv virtualenv 3.6.1 playground
  • activate a virtualenv: $ pyenv activate playground

运行

  • 运行调度: python scrapy_scheduler.py
  • 运行所有爬虫: python run_all_spiders.py

常用命令

  • 新建爬虫:scrapy gensipder <new_spider> <url>

使用scrapyd

  • 命令scrapyd启动 scrapyd,默认在localhost:6800建立监控界面

Build docker image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published