
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
flashscore-scraper
Advanced tools
A Python package for scraping sports data from Flashscore, enabling data-driven sports analytics, visualization projects, and betting models.
A Python package for scraping sports data from Flashscore, enabling data-driven sports analytics, visualization projects, and betting models.
Flashscore Scraper is a flexible and efficient tool for collecting sports data from Flashscore.com. Whether you're building predictive models, analyzing team performance, or creating data visualizations, this package provides the foundation for your sports data needs.
Currently supports:
pip install flashscore-scraper
from flashscore_scraper import FlexibleScraper
# Initialize scraper with filters
filters = {
"sports": ["handball"],
"leagues": ["Kvindeligaen Women"],
"seasons": ["2023/2024"],
"countries": ["Denmark"]
}
# Create scraper instance
scraper = FlexibleScraper(filters=filters)
# Start scraping (with optional odds data)
results = scraper.scrape(headless=True, batch_size=100, scrape_odds=True)
You can check available filter values from your database:
scraper = FlexibleScraper()
available_filters = scraper.get_available_filters()
print(available_filters)
The package uses a YAML configuration file to specify which leagues and seasons to scrape. Create a flashscore_urls.yaml file in your config directory:
sports:
handball:
leagues:
- name: "Herre Handbold Ligaen"
country: "Denmark"
url: "https://www.flashscore.com/handball/denmark/herre-handbold-ligaen"
seasons: [2025, 2024]
volleyball:
leagues:
- name: "PlusLiga"
country: "Poland"
url: "https://www.flashscore.com/volleyball/poland/plusliga"
seasons: [2025]
The scraper is built with a modular design:
The package includes specialized data loaders for each supported sport, providing easy access to the collected data in pandas DataFrame format:
Football class)from flashscore_scraper.data_loaders import Football
loader = Football()
df = loader.load_matches(
league="Premier League",
seasons=["2023/2024"],
include_additional_data=True
)
Handball class)from flashscore_scraper.data_loaders import Handball
loader = Handball()
df = loader.load_matches(
league="Herre Handbold Ligaen",
include_additional_data=True
)
Volleyball class)from flashscore_scraper.data_loaders import Volleyball
loader = Volleyball()
df = loader.load_matches(
league="PlusLiga",
include_additional_data=True
)
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
A Python package for scraping sports data from Flashscore, enabling data-driven sports analytics, visualization projects, and betting models.
We found that flashscore-scraper demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.