📌 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.
- 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.
- Python 🐍
- Selenium (for handling dynamic content)
- BeautifulSoup (for parsing HTML data)
- Pandas (for data manipulation & storage)
- Requests (for sending HTTP requests)
git clone https://github.com/your-username/scraper-project.git
cd scraper-project# Create virtual environment
python3 -m venv env
# Activate (Windows PowerShell)
.\env\Scripts\Activate.ps1
# Activate (Mac/Linux)
source env/bin/activatepip install -r requirements.txt- Launch the scraper:
python index.py
- Select leagues or teams (modify script if needed).
- Scraped data is saved in the
/datafolder as CSV files. - Perform analysis using Jupyter Notebook (
notebook.ipynb).
📦 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
✔️ Automate scraping for multiple leagues
✔️ Store data in a SQL database for better querying
✔️ Build a Flask API to access scraped data
📧 Email: Idreesshoaib82@gmail.com
💼 LinkedIn: Mohammad Bahar
📂 GitHub: medrees-1000