Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ozzieliu on github.
  • I am ozzieliu (https://keybase.io/ozzieliu) on keybase.
  • I have a public key ASB-5pOilWwpTEacyZ9hzQ1amUYFZrXwWZ6_ATkO6pzSQAo

To claim this, I am signing this object:

@ozzieliu
ozzieliu / calling_stubhub_api.py
Last active September 9, 2023 16:56
Proof of Concept task to get ticket prices and event info using StubHub's API with Python
# Quick intro to accessing Stubhub API with Python
# Ozzie Liu (ozzie@ozzieliu.com)
# Related blog post: http://ozzieliu.com/2016/06/21/scraping-ticket-data-with-stubhub-api/
# Updated 3/5/2017 for Python 3 and Stubhub's InventorySearchAPI - v2
import requests
import base64
import json
import pprint
import pandas as pd