Scrapes FP TOP 10 catalogs, resolves titles to TMDB IDs, and writes one JSON file per region.
Install the project:
python -m pip install .Scrape the global page:
python -m flixpatrol_scraper --region global --output global.jsonScrape one region:
python -m flixpatrol_scraper --region united-states --output united-states.jsonScrape multiple regions:
python -m flixpatrol_scraper --region global,united-states,brazil --output exportsScrape all supported regions:
python -m flixpatrol_scraper --all-regions --output exportsScrape all supported regions except regions known to have no or low catalog coverage:
python -m flixpatrol_scraper --all-regions-slim --output exportsResolve TMDB IDs while scraping:
python -m flixpatrol_scraper --all-regions --output exports --resolve-tmdb --tmdb-api-key YOUR_TMDB_API_KEYThe repo includes a scheduled workflow in .github/workflows/update-catalogs.yml.
It:
- runs once per day at
15:30 UTC - can also be triggered manually with
workflow_dispatch - scrapes
--all-regions-slim - resolves TMDB IDs
- writes outputs into
catalogs/ - commits and pushes updated catalog files back to the repository
Required GitHub secrets:
TMDB_API_KEY, orTMDB_ACCESS_TOKEN