Skip to content

creationyun/CrawlingRules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CrawlingRules 1.0

Crawling Helper with Defining Rules in Django (Python)

How to run

This program is written in Python 3.x, so you need to install it.

  1. Activate your virtual environment (recommend)
$ source ~/venv/bin/activate
  1. Install django, bs4 (beautifulsoup) packages
(venv) $ pip install django bs4
  1. 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/

  1. Migrate
(venv) $ python manage.py migrate
  1. Start server (localhost:8000)
(venv) $ python manage.py runserver
  1. Access http://localhost:8000 in your web browser