This project focuses on web scraping and extracting information from websites.
-
Activate virtual environment:
- Go to the project directory and open terminal.
- Run the following command to create a virtual env:
python -m venv .venv
- Run this command to activate your virtual env
.venv/Scripts/activate //windows source .venv/bin/activate //linux
-
Install requirements:
- Run the following command in the opened terminal:
pip install -r requirements.txt
- Run the following command in the opened terminal:
Warning
it may take a few minutes to install requirements and it need a non restricted area
-
Set your environment variables:
- go to djecrety and get a secret key
- create a new file named .env and paste this :
SECRET_KEY=your secret key from djecrety DEBUG= True ALLOWED_HOSTS= localhost,127.0.0.1
-
Migrate the Database:
- Run the following command to migrate database:
python manage.py migrate
- Run the following command to migrate database:
-
Run the Server:
- Execute the following command:
python manage.py runserver
- Execute the following command:
-
Use the project with web interface:
- Open your browser and enter this url
localhost:8000
- Open your browser and enter this url