Git Product home page Git Product logo

bidbybid's Introduction

bidbybid

A python tool which scrapes sold eBay auctions based on one (or more) search terms, and compiles minimum, maximum and average sold prices across a time period.

Installation & Requirements

Make sure you're in your virtual environment of choice, then run

  • poetry install --no-dev if you have Poetry installed
  • pip install -r requirements.txt otherwise

Usage

bidbybid.py [-h] [-l {en_US,en_UK}] [-a] [-b ANOMALIES_BIAS] [-c] [-v] search

positional arguments:
  search                The ebay search terms. Supports advanced patterns such as '-' to exclude words, parentheses for OR queries, '*' as wildcards and quotes for literals. For more information, 
                        see https://www.thebalancesmb.com/mastering-ebay-search-for-sellers-2531709

optional arguments:
  -h, --help            show this help message and exit
  -l {en_US,en_UK}, --locale {en_US,en_UK}
                        The locale to run the search in - will set the eBay's country domain and currency / dates parsing.
  -a, --exclude-anomalies
                        Excludes auctions which strays
  -b ANOMALIES_BIAS, --anomalies-bias ANOMALIES_BIAS
                        Bias for excluding anomalies(e.g. a bias of 0.25 will exclude any auctions which sold at 25% less or more than the average sold price).Only applicaple with --exclude-anomalies. Default is 0.5
  -c, --chart           Displays the scraped results in chart
  -v, --verbose         Increase output log verbosity

Sample usage

python bidbybid.py "xenoblade 2 -collector -special -edition -controller -figure"

Get the prices for the videogame Xenoblade 2, excluding special editions and bundles.

python bidbybid.py "thinkpad x220, thinkpad x230, thinkpad x240, thinkpad x250, thinkpad x260" -a -c 

Get the prices for different models of Thinkpad laptops, excluding any auction that strays more than 50% from the average price (to filter out likely auctions for parts or broken items), and display the results in a chart.

To do

  • Add more ebay locales
  • Implement chart functionality with matplotlib
    • Add polynomial fit to display trendlines for the prices

Support Buy me a coffee

If this tool has proven useful to you, consider buying me a coffee to support development of this and many other projects.

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.