Giter Club home page Giter Club logo

ticket-ticker's Introduction

⚠️ StubHub API has changed and this doesn't work anymore ⚠️

ticket-ticker

StubHubAPI Sports Search

Configuration Structure

{
    "endpoint"        : "https://api.stubhub.com/",
    "access_token"    : "",
    "email"           : {
        "sender"   : "",
        "password" : "",
        "history"  : ""
    }
}

Search Usage

usage: search.py [-h] -q Q -p P [-l L] [--date DATE] [--home HOME]
                 [--away AWAY] [--conf CONF] [--emails EMAILS]

optional arguments:
  -h, --help       show this help message and exit
  -q Q             number of tickets to search for
  -p P             max price per ticket in dollars and cents
  -l L             limit number of events
  --date DATE      date of game (YYYY-MM-DD)
  --home HOME      home team name
  --away AWAY      away team name
  --conf CONF      config file loc
  --emails EMAILS  email to send results to

Setup

  1. Create StubHub account here
  2. Create new application here
  3. Subscribe to all APIs here
  4. Email [email protected] to request InventorySearch V2 API access
  5. Create access token using scripts/get_access_token.py
  6. Setup conf file with access token
  7. Search away!

Email Setup

  1. Add email credentials to conf file
  2. Create email history pickle
  3. Add pickle file location to conf file
mkdir pickles/
python scripts/pickle_help.py delete pickles/email_history.p

StubHubAPIs

Resources

ticket-ticker's People

Contributors

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