Skip to content

copyNdpaste/scrapy-with-django

Repository files navigation

CrawlerWithScrapyAndDjango

CrawlerWithScrapyAndDjango. This crawler crawling posts of board.

Site urls are below. 'p' parameter means page.

http://www.inven.co.kr/board/maple/2299?p=

http://www.inven.co.kr/board/maple/2587?p=

Set up

install requirements

pip install -r requirements.txt

database

python manage.py migrate

Start Project

run django and scrapyd

run django

python manage.py runserver

run scrapyd

cd scrapy_app

scrapyd

send a job request to scrapyd. spider is assigned spider name

curl http://localhost:6800/schedule.json -d project=default -d spider=crawler

How to use

  1. Select option 바란다 게시판 or 자유 게시판.
  2. Click the blue button 크롤링 시작.
  3. Wait until crawling is finished.
  4. Check the crawled data on the table.
  5. If you want to Check all data click the emerald button 전체보기
  6. If you want to visit original page, click the title that is hyper linked.

Initial screen

first page

After crawling

after crawling

from

https://github.com/adriancast/Scrapyd-Django-Template, https://medium.com/@ali_oguzhan/how-to-use-scrapy-with-django-application-c16fabd0e62e

About

Crawler is made by scrapy and server is made by django

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published