events-scraper


Nameevents-scraper JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://github.com/sulynajimsj/events-scraper
SummaryA Python package to fetch events using Ticketmaster API
upload_time2024-09-09 11:01:59
maintainerNone
docs_urlNone
authorSuleiman Najim
requires_python>=3.6
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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.


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/sulynajimsj/events-scraper",
    "name": "events-scraper",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Suleiman Najim",
    "author_email": "Sulysalim@hotmail.com",
    "download_url": "https://files.pythonhosted.org/packages/09/c3/896ba777a0c0d8afa5ae206307ea41b54b328ebe73f249cd5bb0e8fe9d8e/events_scraper-0.1.0.tar.gz",
    "platform": null,
    "description": "# Ticketmaster Events Fetcher\n\nThis 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.\n\n## Features\n\n- Fetch events for a specific city (eg. San Francisco)\n- Customizable date range\n- Comprehensive event information including venue details, ticket information, and more\n- Easy-to-use command-line interface\n- Exportable JSON output\n\n## Installation\n\n## Usage\n\n1. Set your Ticketmaster API key as an environment variable:\n\npip install events-scraper\n\n## Usage\n\npython\nfrom events_scraper import EventsFetcher\n\nInitialize the EventsFetcher with your Ticketmaster API key\n\nfetcher = EventsFetcher(api_key='your_api_key_here')\nFetch events\nevents = fetcher.get_events(city='New York', days_ahead=60, limit=20)\n\nProcess the events\n\nfor event in events:\nprint(f\"Event: {event['name']}\")\nprint(f\"Date: {event['date']}\")\nprint(f\"Venue: {event['venue']}\")\nprint(f\"Price Range: {event['price_range']}\")\nprint(\"---\")\n\n\n\n## API Reference\n\n### `EventsFetcher(api_key: str)`\n\nInitialize the EventsFetcher with your Ticketmaster API key.\n\n### `get_events(city: str = 'San Francisco', days_ahead: int = 30, limit: int = 15) -> List[Dict[str, Any]]`\n\nFetch events based on the given parameters.\n\n- `city`: The city to fetch events for (default: 'San Francisco')\n- `days_ahead`: Number of days ahead to fetch events for (default: 30)\n- `limit`: Maximum number of events to fetch (default: 15)\n\nReturns a list of dictionaries containing event information.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License.\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A Python package to fetch events using Ticketmaster API",
    "version": "0.1.0",
    "project_urls": {
        "Homepage": "https://github.com/sulynajimsj/events-scraper"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "938e386e2574bac93fa5ef63e35f85e23d8ac3f856174f716bf1513a03759059",
                "md5": "455905a32f114c45c4f4fd55558dd64b",
                "sha256": "d2eaabcf819ace65eb0820ec54874607558d940925825486f8031f8bfd45f573"
            },
            "downloads": -1,
            "filename": "events_scraper-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "455905a32f114c45c4f4fd55558dd64b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 3983,
            "upload_time": "2024-09-09T11:01:57",
            "upload_time_iso_8601": "2024-09-09T11:01:57.727327Z",
            "url": "https://files.pythonhosted.org/packages/93/8e/386e2574bac93fa5ef63e35f85e23d8ac3f856174f716bf1513a03759059/events_scraper-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "09c3896ba777a0c0d8afa5ae206307ea41b54b328ebe73f249cd5bb0e8fe9d8e",
                "md5": "8b86139f4d73fefa5a08c9255415ea13",
                "sha256": "0b6ede6e58670203edbf4f78c65b3f284e017b005c26d236d6e8c18733243b55"
            },
            "downloads": -1,
            "filename": "events_scraper-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "8b86139f4d73fefa5a08c9255415ea13",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 3619,
            "upload_time": "2024-09-09T11:01:59",
            "upload_time_iso_8601": "2024-09-09T11:01:59.105805Z",
            "url": "https://files.pythonhosted.org/packages/09/c3/896ba777a0c0d8afa5ae206307ea41b54b328ebe73f249cd5bb0e8fe9d8e/events_scraper-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-09 11:01:59",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sulynajimsj",
    "github_project": "events-scraper",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "events-scraper"
}
        
Elapsed time: 0.54803s