Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- url='http://www.watch-seinfeld-online.com'
- req = urllib2.Request(url)
- req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
- response = urllib2.urlopen(req)
- html = response.read()
- response.close()
- match = re.compile(
- 'a href="(.+?)" title=".+?" class="dd56">(.+?)</a></dt><dt><a '
- ).findall(html)
- for url,name, in match:
- print name, url,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement