The Football Manager Face Downloader script automates the download of player face images for a specified division from SortitoutSI or by extracting "Unique IDs" from a CSV file. It is designed for Football Manager enthusiasts who want to quickly fetch and organize player images without having to download the entire facepack.
- Download player face images for an entire division by providing a SortitoutSI division link.
- Parse a CSV file containing player "Unique IDs" to download specific player images.
- Asynchronous downloads for maximum efficiency.
- Automatic skip for already downloaded images.
- Logs progress and summarizes the total downloads and time taken.
Use the script to download images for a specific division by providing a SortitoutSI division link:
python faces.py <sortitoutsi_division_link>python faces.py https://sortitoutsi.net/football-manager-2024/competition/102421/argentine-premier-divisionIf you have a CSV file containing player information with "Unique IDs," use this command:
python faces.py <CSV file path>python faces.py players.csv- The CSV file must contain a column named
Unique ID. - Ensure the file is correctly formatted for the script to process it successfully.
- For larger datasets, improve efficiency by retaining only the
Unique IDcolumn and removing all other columns from the CSV file.
"Name","Nation","Position","Club","Jdns","Con","Happiness Level","Age","Int Caps","Int Goals","Wage","Value","Sale Value","Best Rating","Best Pot Rating","Unique ID"
"John Doe","England","Midfielder","Club A","123","90","Happy","25","5","2","50k","10M","12M","8","9","1234567"
"Jane Doe","Brazil","Forward","Club B","456","85","Very Happy","23","10","8","60k","15M","20M","9","10","7654321"
-
Install Dependencies The script requires Python 3.8+ and the following libraries:
aiohttpbeautifulsoup4
Install them using pip:
pip install aiohttp beautifulsoup4
-
Prepare a Destination Directory The script automatically should be executed in the Football Manager
graphicsdirectory to store the downloaded images. Alternatively, you can run in any other directory and manually move the images to thegraphicsdirectory.
-
Logs Progress
The script logs messages for each download attempt:2024-11-22 15:00:00 - INFO - Downloaded: 12345.png 2024-11-22 15:00:01 - INFO - Already exists: 67890.png -
Summary of Resources
At the end of execution, a summary is displayed:Downloaded 217830 new images in 45.23 seconds.
python faces.py https://sortitoutsi.net/football-manager-2024/competition/102421/argentine-premier-divisionpython faces.py players.csv