Install python
- run
CTRL + R
to open cmd.exe - run
pip install -r requests.txt
in cmd.exe - run
pyhton db.py
to dump data to csv format in cmd.exe
- modify
inputs.py
to editAmazon
and yearinfor
- run
pyhton crawler.py
to crawler car parts in cmd.exe - run
pyhton fits.py
to update car fits info in cmd.exe
- online view data: https://sqliteviewer.app/
- sqlite3 convert to csv: https://www.rebasedata.com/convert-sqlite-to-csv-online
- sqlite3 op:
sqlite3 data.db
.schema parts;
select * from parts;
select * from parts where fit is not null;
select asin, year,fit,count(*) as c from parts group by asin,year,fit order by c desc;
select asin, year,fit,count(*) as c from parts group by asin,year,fit order by year desc;
select asin, year,fit,count(*) as c from parts group by asin,year,fit order by asin,year desc;
select asin, fit,count(*) from parts group by asin,fit order by asin;
select asin, year,fit,count(*) as c from parts where fit is null group by asin,year,fit order by asin,year desc;
select asin, year,fit,count(*) as c from parts where asin='B00EAOIKWC' group by asin,year,fit order by asin,year desc;
.exit