Run pipenv install
to install dependencies.
Run pipenv shell
to enter virtual environment.
.env
BOOKER_ACCOUNT=
BOOKER_EMAIL=
BOOKER_PASSWORD=
ASP_NET_SESSION=
ASPXAUTH=
Run login.py
every time spiders return non 200 response and copy printed
values into .env
.
Sitemap manually copied from side nav pane. Could be automated.
From list view scrap all product code
's and other info available.
scrapy crawl product_list
Load outputted CSV file into Database for the following step!
From the aforementioned step we have the product_list
table which we now use
to scrap each product page using the code
. scrapy crawl product_detail
Load the data into database.
Run the barcode.py
script to generate a CSV file of all the products in the
database.
SQLite views collate data which can be exported to CSV.