Code Monkey home page Code Monkey logo

stubhub-crawler's Introduction

Stubhub Crawler

This repo contains a number of utilities for collecting data from the Stubhub API. It runs forever, in ~6 second intervals (the free tier of the API allows 10 requests a minute), querying the api or loading events to query from the database.

The following can be run with gradle [name]

  • crawler: This is the primary means of gathering data. It asks the database what events to query about, than queries stubhub repeatedly, storing updates to that event's listing in the database.
  • finder: does a simple event search given a string title of an event, and writes out a readable list of event ids and names to a file called found_events.txt that can be modified before running the creator
  • creator: reads the event ids from found_events, then asks stubhub for a summary of each event, the results of which are stored in the database (venue is added if the event is at a new venue) so that the crawler will start querying on the event the next time it reloads.

It includes a very primitive monitoring script, monitor.py, that sends an email when an error is logged. There's a million ways I might go with monitoring; I'm considering a small flask app that shows logs and some simple stats.

stubhub-crawler's People

Contributors

pgwhalen avatar mahallon avatar

Watchers

James Cloos 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.