Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
pykello
· 14y ago · 0 comments
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.
Comments
[–]
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