/scrap

Primary LanguagePython

gunbrokers.py

Install

1. Download and install Python

Download Python from https://www.python.org/downloads/ When installing, check the two boxes on the bottom. Press Install now and go through the defaults.

2. Unpack project files

Unzip/unpack the project files somewhere From now on, we will reference this as C:/PROJECT/DIR

3. Open a command line instance

Windows: This is CMD or PowerShell Linux: This is command-line

4. Go to the project directory

cd "C:/PROJECT/DIR"

5. Install modules

pip install -r requirements.txt

Setup

Edit the config.json file as needed.

Create sheet from storage files

cd C:\xampp\htdocs\projects\gunbrokers && python gunbrokers.py outputcsv

Update each storage file

cd C:\xampp\htdocs\projects\gunbrokers && python gunbrokers.py export --site sigsauer cd C:\xampp\htdocs\projects\gunbrokers && python gunbrokers.py export --site gunbroker cd C:\xampp\htdocs\projects\gunbrokers && python gunbrokers.py export --site budsgunshop cd C:\xampp\htdocs\projects\gunbrokers && python gunbrokers.py export --site gunstores cd C:\xampp\htdocs\projects\gunbrokers && python gunbrokers.py export --site rockriverarms cd C:\xampp\htdocs\projects\gunbrokers && python gunbrokers.py export --site impactguns cd C:\xampp\htdocs\projects\gunbrokers && python gunbrokers.py export --site sportsmansguide cd C:\xampp\htdocs\projects\gunbrokers && python gunbrokers.py export --site midwayusa cd C:\xampp\htdocs\projects\gunbrokers && python gunbrokers.py export --site grabagun cd C:\xampp\htdocs\projects\gunbrokers && python gunbrokers.py export --site brownells cd C:\xampp\htdocs\projects\gunbrokers && python gunbrokers.py export --site omahaoutdoors cd C:\xampp\htdocs\projects\gunbrokers && python gunbrokers.py export --site palmettostatearmory cd C:\xampp\htdocs\projects\gunbrokers && python gunbrokers.py export --site browning cd C:\xampp\htdocs\projects\gunbrokers && python gunbrokers.py export --site smith-wesson cd C:\xampp\htdocs\projects\gunbrokers && python gunbrokers.py export --site ffl123 cd C:\xampp\htdocs\projects\gunbrokers && python gunbrokers.py export --site goexposoftware cd C:\xampp\htdocs\projects\gunbrokers && python gunbrokers.py export --site sportsmans cd C:\xampp\htdocs\projects\gunbrokers && python gunbrokers.py export --site guns cd C:\xampp\htdocs\projects\gunbrokers && python gunbrokers.py export --site silencershop cd C:\xampp\htdocs\projects\gunbrokers && python gunbrokers.py export --site globalordnance