No project description provided
Project description
TMQuery
TMQuery is a declarative library for efficiently and intuitively scraping data from Transfermarkt.
Installation
pip install tmquery
Usage
from tmquery import TMQuery
TMQuery().search_player("luis suarez").csv()
| name | date_of_birth | place_of_birth | height | citizenship | position | foot | agent | current_club | joined | expires | option | outfitter |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Luis Suárez | Jan 24, 1987 (37) | Salto | 1.82 m | Uruguay | Attack - Centre-Forward | right | Relatives | /inter-miami-cf/startseite/verein/69261 | Jan 1, 2024 | Dec 31, 2024 | Option for a further year | Puma |
TMQuery().search_player("morata").get_transfers().csv()
| player | player_id | season | date | left | joined | mv | fee |
|---|---|---|---|---|---|---|---|
| Álvaro Morata | /alvaro-morata/profil/spieler/128223 | 24/25 | Jul 19, 2024 | Atlético Madrid | AC Milan | €16.00m | €13.00m |
| Álvaro Morata | /alvaro-morata/profil/spieler/128223 | 21/22 | Jun 30, 2022 | Juventus | Atlético Madrid | €25.00m | End of loan |
| Álvaro Morata | /alvaro-morata/profil/spieler/128223 | 20/21 | Sep 22, 2020 | Atlético Madrid | Juventus | €36.00m | €20.00m |
| ... | ... | ... | ... | ... | ... | ... | ... |
TMQuery().search_club("barcelona").get_players(season="2010-11").csv()
| name | date_of_birth | place_of_birth | height | citizenship | position | foot | agent | current_club | joined | expires | option | outfitter |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Víctor Valdés | Jan 14, 1982 (42) | L’Hospitalet de Llobregat | 1.83 m | Spain | Goalkeeper | right | no agent | /retired/startseite/verein/123 | Aug 17, 2017 | - | null | null |
| Rubén Miño | Jan 18, 1989 (35) | Cornellà de Llobregat | 1.91 m | Spain | Goalkeeper | right | /footfeel-ism/beraterfirma/berater/4477 | /ue-cornella/startseite/verein/16196 | Aug 3, 2023 | Jun 30, 2025 | null | null |
| Gerard Piqué | Feb 2, 1987 (37) | Barcelona | 1.94 m | Spain | Defender - Centre-Back | right | /ac-talent/beraterfirma/berater/5041 | null | Jan 1, 2023 | - | null | Nike |
| ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
UML
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tmquery-0.0.3.tar.gz
(14.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
tmquery-0.0.3-py3-none-any.whl
(16.8 kB
view details)
File details
Details for the file tmquery-0.0.3.tar.gz.
File metadata
- Download URL: tmquery-0.0.3.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26067c671b90f3a2e0f098aecbe7dbb89e5a932c7288322420e3a6d46df850ab
|
|
| MD5 |
c74d74178646c287e323fdba0964f0a7
|
|
| BLAKE2b-256 |
affa575c6317b5e858510e7308ebf8f00f130513f932e1991b15f6aa97167d3a
|
File details
Details for the file tmquery-0.0.3-py3-none-any.whl.
File metadata
- Download URL: tmquery-0.0.3-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
622cb6027e5e521bce5eddbc069d298b919a1ffd3a8da0cfcedeef145b4f9cf9
|
|
| MD5 |
4c097f274950009d84f9ec18972f498e
|
|
| BLAKE2b-256 |
44f3852b8e28d364f11ba1352543281616238b1e80c7fb76027db1b72aa725b4
|