Skip to content

Instantly share code, notes, and snippets.

@geojackass
Created May 6, 2015 14:19
Show Gist options
  • Save geojackass/b10494adf10c5d94030f to your computer and use it in GitHub Desktop.
Save geojackass/b10494adf10c5d94030f to your computer and use it in GitHub Desktop.
steephillからとりあえずデータを取得する。##TODOタグをよく確認して、BeautifulSoupでstartlistを作成する。
In [5]:
import urllib
url = "http://www.steephill.tv/giro-d-italia/"
res = urllib.urlopen(url)
html = res.read()
html
Out[5]:
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"\n "http://www.w3.org/TR/html4/loose.dtd"><html><head><title>2015 Giro d\'Italia Live Video, Preview, Startlist, Results, Photos, TV</title><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta name="keywords" content="bicycle, racing, Italy, live video, startlist, photos, english">...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment