Crawling Helper with Defining Rules in Django (Python)
This program is written in Python 3.x, so you need to install it.
- Activate your virtual environment (recommend)
$ source ~/venv/bin/activate
- Install django, bs4 (beautifulsoup) packages
(venv) $ pip install django bs4
- Create secrets.json file in the main directory
(venv) $ cd /path/to/CrawlingRules
(venv) $ echo "{\"SECRET_KEY\": \"...\"}" > secrets.json
You must put your secret key on "..."
(string).
How to get your own secret key: https://miniwebtool.com/django-secret-key-generator/
- Migrate
(venv) $ python manage.py migrate
- Start server (localhost:8000)
(venv) $ python manage.py runserver
- Access http://localhost:8000 in your web browser