Skip to main content

Scraper for FotMob matches

Project description

FMScraper

A Selenium-powered Python tool for scraping football match data from FotMob.

Inspired by: Webscraper-PremData and scraping-football-sites

Overview

FMScraper is a web scraping tool designed to extract comprehensive football match statistics and data from FotMob, a popular platform for football statistics, live scores, and match analysis. The tool automates the data collection process, handling JavaScript-driven content and dynamic page layouts that traditional scraping methods cannot access.

Features

  • Scrapes match info from FotMob
  • Handles JavaScript-driven layouts using Selenium
  • Extracts data for specific leagues, seasons, and matchweeks

Requirements

Disclaimer

For educational and research purposes only. Do not use it commercially.

Installation

  1. Clone the repository:
git clone https://github.com/MieszkoPugowski/FMScraper.git
cd FMScraper
  1. Install using pip:
pip install fmscraper

Example usage

from fmscraper import MatchStats, MatchLinks
game_ids = MatchLinks(league_id=38,league="bundesliga",season='2024-2025').get_matches_ids(32)

some_game = game_ids[0]

data = MatchStats(some_game)

# List of all shots in a game
shotlist = data['content']['shotmap']['shots']
print(shotlist)

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fmscraper-0.1.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fmscraper-0.1.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file fmscraper-0.1.1.tar.gz.

File metadata

  • Download URL: fmscraper-0.1.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for fmscraper-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a8ed3c77269a3afb5fd85a2b9452de4a9d169c04f7efc258da14f76ade87683e
MD5 3957f8f151278ed40a5936ea58358919
BLAKE2b-256 276a44a2039e524ac7e68f5468e1bf9ed0dffe599a750d3a4957a81288f96db7

See more details on using hashes here.

File details

Details for the file fmscraper-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: fmscraper-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for fmscraper-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ee07aecad5416dd4069fecd4a6f18d6e3b55977ddd3ed49d177e80e65ffc23b5
MD5 5a315a89e59d26d3971644c8dc2fa1eb
BLAKE2b-256 9ab4b3764f7779b5fc74d981e252538773dd2fa51f5999d83a7deacca815d158

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page