World Cup results for hackers
github.com
github.com
On a side note, in Gnome terminal, the formatting characters appear as some unicode garbage.
I would love to see something automated like this for the major leagues (La Liga, BPL, Bundesliga, Serie A). I tried my hand at scraping the HTML of different sites, but found out that the main ones guard against that by changing their HTML periodically, so I gave up.
Side question: what does HN think in general about scraping data from HTML? There are websites that charge for live sports data, and scraping them seems borderline unethical.
I suspect rules in other countries vary.
http://www.fifa.com/legal/tos.html
5.10 If You wish to use or display any FIFA feeds / FIFA APIs on Your website:
(a) FIFA grants to You a non-transferable, royalty free, non-exclusive license to
display such feeds on Your website subject to these Terms;
(b) You expressly agree: (i) to ensure that the FIFA feed / FIFA API does not
state or imply that FIFA approves of, sponsors or endorses any other website
activity, company or entity, resource, content, or presents FIFA and/or its
activities in a false, misleading, defamatory or derogatory manner or otherwise
damages FIFA's reputation or takes advantage of it; and (ii) to properly attribute
the FIFA feeds used to FIFA to avoid any misappropriation or confusion;
(c) where possible, You must create a functional link back to the FIFA story or
other material summarized by the relevant FIFA feed.https://en.wikipedia.org/wiki/Daylight_saving_time_in_Brazil
Basically, some parts of Brazil, including the location (Porto Alegre) of the Australia-Netherlands game, use daylight time while others do not. It looks like, for example, the time of Spain-Chile (in Rio, where there is no daylight time) is correct.
A small bash script to display the current match scores as part of the terminal prompt: https://gist.github.com/abiyani/34f25dc8ed2a862517e7
Sample output:
abiyani@vaio:~ [BEL-2-1-ALG, RUS-1-1-KOR, BRA-0-0-MEX]http://moeduffdude.github.io/PIFA
I feed it the JSON and it does the calculations automatically - it's nice I get to have a 30 day streak :)
go Germany!
https://docs.python.org/2/library/string.html#format-example...