Git Product home page Git Product logo

scrapingfromebay's Introduction

Project 3: Scraping From eBay

Instructions for this project can be found here

My ebay-dl.py file converts ebay's html files into .json or .csv files. These files display the name (name), price (price), status (status) and shipping price (shipping) of the item. They also show whether free returns (free_returns) are available for the item, in addition to the number of items sold (items_sold) per item.

In order to run the python file and generate json files, use the following command:

$ python3 ebay-dl.py 'ant traps' 

The key term 'ant trap' is interchangeable with any search term. I also downloaded files with the search terms 'sunglasses' and 'goggles'. Note that the search term must be placed in quotations if there is a space between words. The program is set to download 10 pages if no page count is specified, but if more/fewer pages are being downloaded, the command can be adjusted as follows (8 pages would be printed based on the command below):

$ python3 ebay-dl.py 'ant traps' --num_pages=8 

The program runs with .json files by default. In order to run the python file and generate csv files .csv, use the following command and add --csv=True:

$ python3 ebay-dl.py 'ant traps' --csv=True

scrapingfromebay's People

Contributors

jadersaunders avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar Henry Long avatar  avatar  avatar  avatar Ben Smith avatar Adam avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.