Skip to content

ammofinder/backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ammofinder backend

Backend for scraping information from stores. It's not even alpha :)

Scraped products:

  • Ammunition
    • 9x19
    • 22 LR
    • 223 Rem
    • 7.62x39

Supported stores:

  • DixiePomerania
  • GardaArms
  • Rusznikarnia
  • Arel
  • Tarcza

Setup

Create database, e.g. mariadb instance:

DESCRIBE table_name;
CREATE DATABASE database_name;
USE database_name;

CREATE TABLE table_name (
    id INT AUTO_INCREMENT PRIMARY KEY,
    caliber VARCHAR(50),
    shop VARCHAR(255),
    link VARCHAR(255),
    product_name VARCHAR(255),
    price VARCHAR(255),
    available VARCHAR(255),
    date_updated timestamp
);

Create config.yaml file in main catalog with following content:

database:
  host: database_ip_address
  port: port
  user: username
  password: password
  db: database_name
  table: table_name

Run

venv\bin\activate

python -m pip install -r requirements.txt

python run.py --config config.yaml

More info: ammofinder/frontend

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages