Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 568 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 568 Bytes

Blog Spider

Run

  • docker compose up --build -d

Cron Job

run spiders

  • curl -X POST -H "Content-Type: application/json" -d '{"spiders": ["all"]}' http://127.0.0.1:8080/submit/crawl

backup mongo

  • docker-compose exec mongodb mongodump -u scrapy -p scrapy -d scrapy -c spider --gzip --archive=/dump/spider.gz
  • docker-compose exec mongodb mongodump -u scrapy -p scrapy -d scrapy -c category --gzip --archive=/dump/category.gz

React JS Build

  • docker container run --rm -v `pwd`/www/src/static/:/static/ -w /static/app/ node ./build.sh