Git Product home page Git Product logo

basic-ebay-scraper's Introduction

basic-ebay-scraper

A very basic ebay webscraper - done as HW in CSCI40 at Claremont McKenna College.

The scraper looks up the phrase on ebay and then gets the details about each offer from their individual pages.

The user can choose the search phrase, number of desired results, output file type (json default, csv available).

The outcome in the json/csv files lists all the products together with their: name, price (in cents), shipping cost (in cents), condition, boolean for free returns, and number of items already sold.

To use this scraper, run: $ python3 ebay-dl.py 'search term' where 'search term' is the desired product you want to search

You can also add the following flags:

--num=X

where X is the number of results you would like to get (default is 10)

--csv

which generates a .csv file instead of .json

Commands used to generate the files in this repo:

$ python3 ebay-dl.py 'xperia 1 iii' --num=25
$ python3 ebay-dl.py 'hp spectre x360' --num=10 #technically not required as num=10 is the default value
$ python3 ebay-dl.py 'arduino uno' --num=12
$ python3 ebay-dl.py 'xperia 1 iii' --num=25 --csv
$ python3 ebay-dl.py 'hp spectre x360' --num=10 --csv #technically not required as num=10 is the default value
$ python3 ebay-dl.py 'arduino uno' --num=12 --csv

TO-DO:

  • There are essentially no comments for the most of the time
  • Efficiency is terrible
  • Output the link, bid/sale/best-offer type

basic-ebay-scraper's People

Contributors

hgmtsk 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.