https://github.com/erengaygusuz/soccer-card-project
My Childhood Soccer Card Project
https://github.com/erengaygusuz/soccer-card-project
generating-cards image-processing imageedit python python3 soccercard transfermarkt webscrapping webscrapping-images webscrapping-python
Last synced: about 2 months ago
JSON representation
My Childhood Soccer Card Project
- Host: GitHub
- URL: https://github.com/erengaygusuz/soccer-card-project
- Owner: erengaygusuz
- License: mit
- Created: 2022-12-21T17:43:33.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-31T08:47:14.000Z (about 2 years ago)
- Last Synced: 2025-01-20T19:23:38.809Z (3 months ago)
- Topics: generating-cards, image-processing, imageedit, python, python3, soccercard, transfermarkt, webscrapping, webscrapping-images, webscrapping-python
- Language: Python
- Homepage:
- Size: 8.16 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# My Childhood Soccer Card Project
## Description
In this project, I tried to create soccer cards which I played in my past.
You can see a picture about these cards at below.

I played these cards with my friends almost 20 years ago.
So, I decided to generate these cards with using transfermarkt datas.
I prepared some base photos as useful source for me. You can see them at below.

I created them using Gimp and MS Power Point.
I used a technique to get data from transfermarkt which is known as web scraping.
Also, I manipulated the pictures and datas which is downloaded.You can see the final result as below.

## Tools
* PyCharm Community Edition 2022.2.3 (To write codes and generate cards)
* Gimp & Power Point (To create base photos)
* Font files (To make almost same font in cards)## Installation
* Be sure that Python 3 version is installed in your PC.
* Clone the project using this command: ``` https://github.com/erengaygusuz/soccer-card-project.git ```
* Install required packages with using this command in terminal: ``` pip install -r requirements.txt ```
* Run the project.
* Generated files will be under the ProjectRootDirectory/output-photos/final-results folder.## How to Use
* If you run the code directly without changing anything, you will get player cards of Sportoto Super League Teams from Turkey.
* To generate cards from other leagues, please change the value of variable named leagueLinkAddress with a transfermarkt league link address
* For Example to generate England Premier League use this link: ``` https://www.transfermarkt.com/premier-league/startseite/wettbewerb/GB1 ```
* Also some values are calculated with some random values if it does not exist or can not get from transfermarkt.
* For example weight, height, market value, player number etc.## License
The MIT License (MIT)