๐Ÿ“ฆ zeyap / news_viz

โ˜… 1 stars โ‘‚ 1 forks ๐Ÿ‘ 1 watching โš–๏ธ MIT License
๐Ÿ“ฅ Clone https://github.com/zeyap/news_viz.git
HTTPS git clone https://github.com/zeyap/news_viz.git
SSH git clone git@github.com:zeyap/news_viz.git
CLI gh repo clone zeyap/news_viz
amoewdy amoewdy crawlers 597b078 7 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ newsdemo
๐Ÿ“„ __init__.py
๐Ÿ“„ .gitattributes
๐Ÿ“„ .gitignore
๐Ÿ“„ LICENSE
๐Ÿ“„ manage.py
๐Ÿ“„ README.md
๐Ÿ“„ requirements.txt
๐Ÿ“„ README.md

configurations

newsdemo: the main project

newsdemo/apps/viz: the app for user interfaces

newsdemo/apps/crawler: all methods of crawlers

run the project

STEP 1. Install celery:

$ pip install celery $ pip install django-celery

Install RabbitMq here and start it on your computer

$ python manage.py migrate --settings=newsdemo.settings.local

STEP 2. Open 2 consoles:

Start the user interface process: $ python manage.py runserver --settings=newsdemo.settings.local

Start the auto-crawler process: $ python manage.py celery worker --loglevel=info --settings=newsdemo.settings.local

Write your own crawler and test it

See example in newsdemo/apps/crawler/crawlers.py - class TestCrawler