This script web scrapes Transfermarkt for club transfer data. See the data repository for CSVs of the scraped data.
The scraper is most easily run with uv:
uv sync
uv run main.pyFollow the text prompts to select the desired leagues and seasons.
The scraped and cleaned data will be written to CSVs in a created data directory.
If not using uv, install the following dependencies by any method:
- BeautifulSoup
- httpx
- Pandas
- questionary
The scraper is purely for demonstration and should not be put into production.