kwlzn / pystubhub

python bindings to the stubhub api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pystubhub

python bindings to the stubhub api

features

Supports the following API objects:

  • Event
  • Genre
  • Geo
  • Ticket
  • Venue

Supports the following methods per object:

  • fetch(object_id)
  • search_by_name(search_query)
  • search(param=val, param2=val)

usage

from stubhub import StubhubClient

stubhub = StubhubClient()  

# Fetch Event 12345.
events = stubhub.Event.fetch(12345)

# Search Event objects by name/description.
events = stubhub.Event.search_by_name('chvrches')

# Search Event objects by arbitrary fields.
events = stubhub.Event.search(description='chvrches')

notes, etc

About

python bindings to the stubhub api


Languages

Language:Python 100.0%