pka420 / CoinScrapper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CoinScrapper

Demo

demo.mp4
  1. Create a job. image

  2. Check Status

Not Completed: image

Completed: image

Failed: image

How to start for development:

  1. Make python environment
python3 -m venv env
source env/bin/activate
  1. Initiate DB.
# Install Postgresql
psql -d postgres -U postgres -W
create database coin_scrapper;
create user coin_scrapper;
alter role coin_scrapper with passwsord='';
grant ALL privileges on database coin_scrapper to coin_scrapper;
alter role coin_scrapper login;
  1. Install Redis here are the instructions

  2. Get membership or free trial from proxymesh. This step is optional, but proxymesh allows us to fake our ip to anywhere in the world for each run. This way we avoid getting our ip banned from scraping.

  3. Initiate .env

CHROMEDRIVER_PATH=""
CHROME_BINARY_PATH=""
secret_key=""

postgres_db_name=""
postgres_db_username=""
postgres_db_password=""

# for proxys if not using comment this part out in scrapper.py as well.
HOSTNAME=""
PORT=""

LOGS_PATH="/var/logs/CoinScrapper"
  1. Run python server
python manage.py makemigrations
python manage.py migrate
python manage.py runserver localhost:8000

About


Languages

Language:Python 100.0%