Skip to main content

A Python package to fetch events using Ticketmaster API

Project description

Ticketmaster Events Fetcher

This Python package allows you to easily fetch and process event data from the Ticketmaster API. It's designed to be simple to use and customize for your specific needs.

Features

  • Fetch events for a specific city (eg. San Francisco)
  • Customizable date range
  • Comprehensive event information including venue details, ticket information, and more
  • Easy-to-use command-line interface
  • Exportable JSON output

Installation

Usage

  1. Set your Ticketmaster API key as an environment variable:

pip install events-scraper

Usage

python from events_scraper import EventsFetcher

Initialize the EventsFetcher with your Ticketmaster API key

fetcher = EventsFetcher(api_key='your_api_key_here') Fetch events events = fetcher.get_events(city='New York', days_ahead=60, limit=20)

Process the events

for event in events: print(f"Event: {event['name']}") print(f"Date: {event['date']}") print(f"Venue: {event['venue']}") print(f"Price Range: {event['price_range']}") print("---")

API Reference

EventsFetcher(api_key: str)

Initialize the EventsFetcher with your Ticketmaster API key.

get_events(city: str = 'San Francisco', days_ahead: int = 30, limit: int = 15) -> List[Dict[str, Any]]

Fetch events based on the given parameters.

  • city: The city to fetch events for (default: 'San Francisco')
  • days_ahead: Number of days ahead to fetch events for (default: 30)
  • limit: Maximum number of events to fetch (default: 15)

Returns a list of dictionaries containing event information.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

events_scraper-0.1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

events_scraper-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file events_scraper-0.1.0.tar.gz.

File metadata

  • Download URL: events_scraper-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for events_scraper-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0b6ede6e58670203edbf4f78c65b3f284e017b005c26d236d6e8c18733243b55
MD5 8b86139f4d73fefa5a08c9255415ea13
BLAKE2b-256 09c3896ba777a0c0d8afa5ae206307ea41b54b328ebe73f249cd5bb0e8fe9d8e

See more details on using hashes here.

File details

Details for the file events_scraper-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: events_scraper-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for events_scraper-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d2eaabcf819ace65eb0820ec54874607558d940925825486f8031f8bfd45f573
MD5 455905a32f114c45c4f4fd55558dd64b
BLAKE2b-256 938e386e2574bac93fa5ef63e35f85e23d8ac3f856174f716bf1513a03759059

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page