StubHubAPI Sports Search
{
"endpoint" : "https://api.stubhub.com/",
"access_token" : "",
"email" : {
"sender" : "",
"password" : "",
"history" : ""
}
}
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
- Create StubHub account here
- Create new application here
- Subscribe to all APIs here
- Email [email protected] to request InventorySearch V2 API access
- Create access token using scripts/get_access_token.py
- Setup conf file with access token
- Search away!
- Add email credentials to conf file
- Create email history pickle
- Add pickle file location to conf file
mkdir pickles/
python scripts/pickle_help.py delete pickles/email_history.p