Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
whalerid3r
· 14y ago · 0 comments
The Telegraph page that this is pulling data from is itself out of date by a couple of days. The official website might be a better source:
http://www.london2012.com/medals/medal-count/
Comments
[–]
pykello
14y ago
I tried using that page, but they were resisting about automated bots by giving "Forbidden Request" reponses. I'll try to find a better source though.
[–]
subsystem
14y ago
Scraping 101: Set you user-agent to mimic a browser, for example:
curl -A "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.186 Safari/535.1"
http://www.london2012.com/medals/medal-count/
[–]
theallan
14y ago
http://www.bbc.co.uk/sport/olympics/2012/medals/countries