football.db Gem Family 2020.9 Update for Season 2020/21 incl. all FIFA countries, world's top football leagues & clubs

20 views
Skip to first unread message

Gerald Bauer

unread,
Sep 15, 2020, 3:37:11 AM9/15/20
to open...@googlegroups.com
Hello,

I've updated the complete football.db Gem Family [1] for the Season 2020/21.

The football.db gems incl. zero-config ready-to-use datasets / classes
for all FIFA countries (240+), the world's top football leagues &
clubs and more.

If your favorite league or clubs is missing, please tell. Try, for example:

```
m = League.match( 'Premier League' )
m.size # 7 league matches found
#=> 7
m[0].name; m[0].country
#=> "English Premier League", "England"
m[1].name; m[1].country
#=> "Welsh Premier League", "Wales"
m[2].name; m[2].country
#=> "Russian Premier League", "Russia"
# ...

# - or -

m = Club.match( 'Arsenal' )
m.size # 3 club matches found
#=> 3
m[0].name; m[0].city; m[0].country
#=> "Arsenal FC", "London", "England"
m[1].name; m[1].city; m[1].country
#=> "Arsenal Tula", "Tula", "Russia"
m[2].name; m[2].city; m[2].country
#=> "Arsenal de Sarandí", "Sarandí", "Argentina"
```


Enjoy the beautiful game scripting with ruby. Happy data wrangling.
Cheers. Prost.

[1] https://github.com/sportdb/football.db
Reply all
Reply to author
Forward
0 new messages