A Python scraper for extracting event listings from TickPick.com using the ScrapingAnt web scraping API.
- Scrapes event listings from TickPick.com across multiple categories
- Supports NBA, NFL, MLB, NHL teams and concerts
- Extracts comprehensive event details:
- Event title (game matchup or artist name)
- Date and time
- Venue name and location
- Ticket price (starting from)
- Hot Event indicator
- Category
- Handles JavaScript "View More" pagination via click simulation
- Exports data to CSV and JSON formats
- Deduplicates events automatically
- Uses CSS selectors for reliable extraction
- Python 3.8+
- ScrapingAnt API key (Get free API key)
Note: The ScrapingAnt free plan has a concurrency limit of 1 thread. For higher throughput, consider upgrading to a paid plan.
- Clone this repository:
git clone https://github.com/kami4ka/tickpick-scraper.git
cd tickpick-scraper- Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Set your ScrapingAnt API key:
export SCRAPINGANT_API_KEY="your_api_key_here"Scrape events from default categories (Lakers and Bad Bunny):
python main.pypython main.py [OPTIONS]
Options:
--category TEXT Scrape a specific category only
--categories TEXT... Scrape multiple specific categories
--all-categories Scrape all available categories
--pages N Number of 'View More' clicks per category (default: 3)
-o, --output PATH Output CSV file path (default: output/tickpick_events.csv)
--json Also export to JSON format
-v, --verbose Enable verbose output
--api-key TEXT ScrapingAnt API key (or set SCRAPINGANT_API_KEY env var)
--list-categories List available categories and exitScrape with verbose output:
python main.py --verboseScrape a specific category:
python main.py --category nba/los-angeles-lakers-tickets --verboseScrape multiple categories:
python main.py --categories nba/los-angeles-lakers-tickets nba/golden-state-warriors-tickets --verboseScrape all available categories:
python main.py --all-categories --verboseScrape with more pagination clicks:
python main.py --pages 5 --verboseExport to both CSV and JSON:
python main.py --json -o output/events.csvList available categories:
python main.py --list-categoriesnba/los-angeles-lakers-tickets- Los Angeles Lakersnba/golden-state-warriors-tickets- Golden State Warriorsnba/boston-celtics-tickets- Boston Celticsnba/new-york-knicks-tickets- New York Knicksnba/chicago-bulls-tickets- Chicago Bullsnba/miami-heat-tickets- Miami Heat
nfl/dallas-cowboys-tickets- Dallas Cowboysnfl/new-england-patriots-tickets- New England Patriotsnfl/green-bay-packers-tickets- Green Bay Packers
mlb/new-york-yankees-tickets- New York Yankeesmlb/los-angeles-dodgers-tickets- Los Angeles Dodgers
nhl/new-york-rangers-tickets- New York Rangersnhl/boston-bruins-tickets- Boston Bruins
concerts/bad-bunny-tickets- Bad Bunnyconcerts/taylor-swift-tickets- Taylor Swiftconcerts/beyonce-tickets- Beyonceconcerts/drake-tickets- Drakeconcerts/the-weeknd-tickets- The Weeknd
| Field | Description | Example |
|---|---|---|
| title | Event name/matchup | Lakers vs. Hawks |
| date | Event date | Jan 13 |
| time | Day and time | Tue 7:30 pm |
| venue | Venue name | Crypto.com Arena |
| location | City, State | Los Angeles, CA |
| price | Ticket price | From $31+ |
| is_hot | Hot event indicator | True/False |
| event_url | Category URL | https://www.tickpick.com/nba/... |
| category | Category name | Los Angeles Lakers |
| scraped_at | Timestamp | 2026-01-10T10:30:00Z |
title,date,time,venue,location,price,is_hot,event_url,category,scraped_at
Lakers vs. Hawks,Jan 13,Tue 7:30 pm,Crypto.com Arena,Los Angeles, CA,From $31+,False,https://www.tickpick.com/nba/los-angeles-lakers-tickets/,Los Angeles Lakers,2026-01-10T10:30:00ZTickPickScraper/
├── config.py # Configuration settings and categories
├── models.py # Event and EventCollection data classes
├── utils.py # Utility functions for parsing
├── scraper.py # Main scraper class
├── main.py # CLI entry point
├── requirements.txt # Python dependencies
├── .gitignore # Git ignore patterns
├── output/ # Output directory for scraped data
│ └── .gitkeep
└── README.md # This file
The scraper fetches event listing pages from TickPick.com using ScrapingAnt's browser rendering capability with residential proxies.
Each event card contains:
- Event title (game matchup or performer name)
- Date and time
- Venue and location
- Starting ticket price
- Hot Event badge (optional)
The scraper:
- Navigates to the category's event listing page
- Uses JavaScript snippets to click "View More" button multiple times
- Parses the HTML to extract event data using CSS selectors
- Deduplicates events based on title, date, and venue
- Exports to CSV/JSON format
Each "View More" click typically loads 10-20 more events. Use the --pages option to control how many times to click.
MIT License
This scraper is for educational purposes only. Please respect TickPick.com's terms of service and rate limits when using this tool. Always ensure your scraping activities comply with applicable laws and website policies.