This repository contains a dataset of FIFA 2021 Player ratings scraped from web.
This dataset has the following properties:
- Every player in FIFA 21.
- Player personal information such as Nationality, Club, Age, Wage, Salary.
- Attributes based on actual data.
>>> df.columns
Index(['Short Name', 'Full Name', 'Nationality', 'Age', 'Overall',
'Potential', 'Club', 'Height', 'Weight', 'Foot', 'Best Position',
'Value', 'Wage', 'VIT', 'TIR', 'PAS', 'DRI', 'DEF', 'PHY'],
dtype='object')
Below: Screenshot from the web site that I have scraped
-
If you want to run the REST API, first ensure you have python globally installed in your computer. If not, you can get python here.
-
Then, clone the repo to your PC
$ git clone https://github.com/othmbela/fifa-21-web-scraping.git
-
- Cd into your the cloned repository as such:
$ cd fifa-21-web-scraping
- Create and fire up your virtual environment:
$ python3 -m venv venv $ source venv/bin/activate
- Install the dependencies needed to run the app:
$ pip install -r requirements.txt
- Cd into your the cloned repository as such:
-
Fire up the program using this one simple command:
$ python main.py
├── .gitignore
├── logging.conf
├── main.py
├── requirements.txt
├── assets
│ └── images
├── data
├── logs
├── scraper
│ ├── __init__.py
│ ├── scraper_utils.py
│ └── scraper.py
└── utils
├── __init__.py
├── multi_threading.py
└── save_data.py
The data has been scraped from the https://sofifa.com website.
Othmane Belarbi