Skip to content

medrees-1000/Scraper-Project

Repository files navigation

⚽ FotMob Web Scraper

📌 Web Scraping Project using Python
This project scrapes football match data from FotMob, extracts key statistics, and stores them in a structured format for further data analysis.


🚀 Features

  • Automates data extraction from FotMob.
  • Scrapes live & historical football match stats.
  • Stores scraped data in CSV format for further processing.
  • Uses Selenium & BeautifulSoup for dynamic and static content extraction.
  • Error handling & robust scraping techniques implemented.

🛠 Technologies Used

  • Python 🐍
  • Selenium (for handling dynamic content)
  • BeautifulSoup (for parsing HTML data)
  • Pandas (for data manipulation & storage)
  • Requests (for sending HTTP requests)

🔧 Setup & Installation

1️⃣ Clone the Repository

git clone https://github.com/your-username/scraper-project.git
cd scraper-project

2️⃣ Create & Activate Virtual Environment

# Create virtual environment
python3 -m venv env

# Activate (Windows PowerShell)
.\env\Scripts\Activate.ps1  

# Activate (Mac/Linux)
source env/bin/activate

3️⃣ Install Dependencies

pip install -r requirements.txt

📊 How It Works

  1. Launch the scraper:
    python index.py
  2. Select leagues or teams (modify script if needed).
  3. Scraped data is saved in the /data folder as CSV files.
  4. Perform analysis using Jupyter Notebook (notebook.ipynb).

📂 Project Structure

📦 Scraper-Project
 ┣ 📂 data              # Folder for scraped football data
 ┣ 📜 .gitignore        # Git ignore file
 ┣ 📜 README.md         # Project documentation
 ┣ 📜 async.py          # Async scraping script (if used)
 ┣ 📜 index.py          # Main script for scraping
 ┣ 📜 notebook.ipynb    # Jupyter Notebook for analysis
 ┣ 📜 requirements.txt   # List of dependencies
 ┣ 📜 test_pyetes.py     # Testing script
 ┗ 📜 testing.ipynb      # Additional tests

📌 Future Enhancements

✔️ Automate scraping for multiple leagues
✔️ Store data in a SQL database for better querying
✔️ Build a Flask API to access scraped data


🤝 Connect With Me

📧 Email: Idreesshoaib82@gmail.com
💼 LinkedIn: Mohammad Bahar
📂 GitHub: medrees-1000


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors