Skip to content

tonystz/amazon

Repository files navigation

Amazon Vehicle Parts crawler with request solution

Install python

Install dependency

  1. run CTRL + R to open cmd.exe
  2. run pip install -r requests.txt in cmd.exe
  3. run pyhton db.py to dump data to csv format in cmd.exe

start to crawler data

  1. modify inputs.py to edit Amazon and year infor
  2. run pyhton crawler.py to crawler car parts in cmd.exe
  3. run pyhton fits.py to update car fits info in cmd.exe

error & debug

other

  1. online view data: https://sqliteviewer.app/
  2. sqlite3 convert to csv: https://www.rebasedata.com/convert-sqlite-to-csv-online
  3. 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages