Skip to main content

Scraper for FotMob matches

Project description

FMScraper

FMScraper is a web scraping tool that uses requests for HTTP handling. This repository enables efficient extraction of 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
  • Extracts data for specific leagues, seasons, and matchweeks
  • Provides easily exportable or processable match data for further analysis.

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 FotMobStats 

bundesliga_stats = FotMobStats(league_id=38,season="2024-2025")
game_ids = bundesliga_stats.get_matches_list(team_or_all='all')

first_game = game_ids[0]

# List of all shots in a game
shotlist = bundesliga_stats.get_match_details(match_id=first_game,
                                                content_type="shotmap")
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.4.tar.gz (6.2 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.4-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fmscraper-0.1.4.tar.gz
  • Upload date:
  • Size: 6.2 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.4.tar.gz
Algorithm Hash digest
SHA256 6acfb6a61560f6a127b37b1e70260999efea7b586e2c3d9c759ece00ba62a975
MD5 74dd9d66285b2f9ce9c5a97c4d4bbba3
BLAKE2b-256 1f529871c0d2041e3a0c80620a89b0135b719f584460be77a7d0935410789b41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fmscraper-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 5.7 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 bdd6d11890e71339b95ab5911ca23dc66833d6290e5c7e4c556ea3b73e4fa9bd
MD5 dda0d9b1909dee903d3979dd0aa7daa3
BLAKE2b-256 cfd0cd173c3aa90ee1d8d6e593469617dc08a1ff302f10e392f68aaf7da6475b

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