What about ME
🌱 I’m currently learning Rust && Golang.💬 Ask me about Anything!⚡ Fun fact: Long hair!
I am a CLI for all european football data.
License: MIT License
Brett@DESKTOP-SUFVJ9T MINGW64 ~/Desktop/Misc/pysoccer (windows-doc)
$ soccer --competition
----------------------------------------------------------------------------------------------------
CAPTION CM LEAGUE GAMES MD TEAMS YEAR
----------------------------------------------------------------------------------------------------
European Championships France 2016 7 EC 51 46 24 2016
Premier League 2016/17 34 PL 380 38 20 2016
Championship 2016/17 44 ELC 552 46 24 2016
League One 2016/17 45 EL1 552 46 24 2016
FA-Cup 2016/17 7 FAC 155 38 20 2016
1. Bundesliga 2016/17 30 BL1 306 34 18 2016
2. Bundesliga 2016/17 30 BL2 306 34 18 2016
DFB-Pokal 2016/17 5 DFB 62 126 64 2016
Eredivisie 2016/17 32 DED 306 34 18 2016
Ligue 1 2016/17 34 FL1 380 38 20 2016
Ligue 2 2016/17 34 FL2 380 38 20 2016
Primera Division 2016/17 33 PD 380 38 20 2016
Liga Adelante 2016/17 35 SD 462 42 22 2016
Serie A 2016/17 33 SA 380 38 20 2016
Primeira Liga 2016/17 30 PPL 306 34 18 2016
Champions League 2016/17 9 CL 124 62 32 2016
Serie B 37 SB 462 42 22 2016
English National League 45 ENL 552 46 24 2016
League Two 44 EL2 552 46 24 2016
----------------------------------------------------------------------------------------------------
Brett@DESKTOP-SUFVJ9T MINGW64 ~/Desktop/Misc/pysoccer (windows-doc)
$ soccer --standings --league BL1
--------------------------------------------------------------------------------
POS CLUB PLAYED GOAL DIFF POINTS
--------------------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Program Files\Python36\Scripts\soccer-script.py", line 11, in <module>
load_entry_point('pysoccer==0.0.1', 'console_scripts', 'soccer')()
File "C:\Program Files\Python36\lib\site-packages\click\core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "C:\Program Files\Python36\lib\site-packages\click\core.py", line 697, in main
rv = self.invoke(ctx)
File "C:\Program Files\Python36\lib\site-packages\click\core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Program Files\Python36\lib\site-packages\click\core.py", line 535, in invoke
return callback(*args, **kwargs)
File "C:\Program Files\Python36\lib\site-packages\pysoccer-0.0.1-py3.6.egg\soccer\main.py", line 101, in main
File "C:\Program Files\Python36\lib\site-packages\pysoccer-0.0.1-py3.6.egg\soccer\request_handler.py", line 88, in get_standings
File "C:\Program Files\Python36\lib\site-packages\pysoccer-0.0.1-py3.6.egg\soccer\writers\writers.py", line 71, in standings
KeyError: 'BL1'
Brett@DESKTOP-SUFVJ9T MINGW64 ~/Desktop/Misc/pysoccer (windows-doc)
$ soccer --standings --league BL2
--------------------------------------------------------------------------------
POS CLUB PLAYED GOAL DIFF POINTS
--------------------------------------------------------------------------------
1 VfB Stuttgart 29 18 57
2 Hannover 96 30 15 57
3 1. FC Union Berlin 29 15 54
4 Eintracht Braunschweig 29 14 54
5 Dynamo Dresden 30 9 46
6 SpVgg Greuther Fürth 30 -5 43
7 1. FC Heidenheim 1846 30 7 40
8 1. FC Nürnberg 29 -4 38
9 VfL Bochum 29 -4 37
10 SV Sandhausen 29 2 35
11 FC St. Pauli 30 -2 35
12 Fortuna Düsseldorf 30 -3 35
13 1. FC Kaiserslautern 30 -5 35
14 TSV 1860 München 30 -8 33
15 Erzgebirge Aue 30 -14 33
16 Würzburger Kickers 29 -3 32
17 Arminia Bielefeld 30 -10 31
18 Karlsruher SC 29 -22 22
--------------------------------------------------------------------------------
德甲会报错,但是德乙没问题。
两支球队的短码都是FCB
,用soccer --players --team FCB
查看球员信息给出的是巴萨的结果:
C:\Users\Brett>soccer --players --team FCB
------------------------------------------------------------------------------------------------------------------------
NAME NUMBER POSITION BIRTH NATIONALITY CONTRACT UNTIL
------------------------------------------------------------------------------------------------------------------------
Rafinha 12 Central Midfield 1993-02-12 Brazil 2020-06-30
Marc-André ter Stegen 1 Keeper 1992-04-30 Germany 2019-06-30
Jasper Cillessen 13 Keeper 1989-04-22 Netherlands 2021-06-30
Jordi Masip 25 Keeper 1989-01-03 Spain 2017-06-30
Gerard Piqué 3 Centre-Back 1987-02-02 Spain 2019-06-30
Samuel Umtiti 23 Centre-Back 1993-11-14 France 2021-06-30
Javier Mascherano 14 Centre-Back 1984-06-08 Argentina 2019-06-30
Jérémy Mathieu 24 Centre-Back 1983-10-29 France 2018-06-30
Jordi Alba 18 Left-Back 1989-03-21 Spain 2020-06-30
Lucas Digne 19 Left-Back 1993-07-20 France 2021-06-30
Sergi Roberto 20 Right-Back 1992-02-07 Spain 2019-06-30
Aleix Vidal 22 Right-Back 1989-08-21 Spain 2020-06-30
Sergio Busquets 5 Defensive Midfield 1988-07-16 Spain 2021-06-30
Ivan Rakitic 4 Central Midfield 1988-03-10 Croatia 2021-06-30
Andrés Iniesta 8 Central Midfield 1984-05-11 Spain 2018-06-30
André Gomes 21 Central Midfield 1993-07-30 Portugal 2021-06-30
Denis Suárez 6 Central Midfield 1994-01-06 Spain 2020-06-30
Neymar 11 Left Wing 1992-02-05 Brazil 2021-06-30
Arda Turan 7 Left Wing 1987-01-30 Turkey 2020-06-30
Lionel Messi 10 Right Wing 1987-06-24 Argentina 2018-06-30
Luis Suárez 9 Centre-Forward 1987-01-24 Uruguay 2021-06-30
Paco Alcácer 17 Centre-Forward 1993-08-30 Spain 2021-06-30
------------------------------------------------------------------------------------------------------------------------
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.