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)
game_ids = bundesliga_stats.get_matches_list(season="2024-2025",
                                             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.3.tar.gz (5.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.3-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fmscraper-0.1.3.tar.gz
  • Upload date:
  • Size: 5.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.3.tar.gz
Algorithm Hash digest
SHA256 cf423def1e43f9f04ed8d28e19613a0c2008a2715bc99eafb9b844fc7418bb05
MD5 93a0657c2f83dca61cb58f1bb8e87a7e
BLAKE2b-256 7b89d120c3820b629671f21d9a1ca08e4216fef843d31d0365fb33846d63fdce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fmscraper-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 6.3 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6ae986a0c07622431d67faf4edcd7b700c833205a297e9e417e124b66ac53161
MD5 4f911441758a2e739a6471537267e1cd
BLAKE2b-256 c9c8423bb98c18f76802c8aee3ae35bf8ca3f20d504ba2e8c7835f2b95ee59c7

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