The ebay-dl.py file allows a user to input via the terminal the name of an item they would like to search for on Ebay. It then returns a .json file containing key product information for the first 10 pages of results. This information consists of:
- Product name, as shown in the item's listing
- Whether or not the item has free returns
- The number of each item already sold (if applicable)
- The condition of the item (new, used, etc)
- The price of each item (in cents)
- The shipping cost of each item (in cents)
This file can be run via the terminal in VSCode by inputing
ebay-dl.py 'SEARCH TERM' --num_pages=X
wherein SEARCH TERM is the user desired search term and X is the user desired number of pages to be scraped. Without the --num_pages= flag, the program will default to 10. Below are three example searches and their results:
- Search for zippo
python3 ebay-dl.py 'zippo'
- Search for cocktail shakers
python3 ebay-dl.py 'cocktail shaker'
- Search for big lebowski
python3 ebay-dl.py 'big lebowski'
This program was created for a CS assignment. The assignment description can be found here.