Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 12th, 2013  |  syntax: None  |  size: 0.34 KB  |  views: 28  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. import urllib, urllister
  2. usock = urllib.urlopen("http://diveintopython.net/")
  3. parser = urllister.URLLister()
  4. parser.feed(usock.read())
  5. usock.close()
  6. parser.close()
  7. for url in parser.urls: print(url)
  8.        
  9. Traceback (most recent call last):
  10.   File "demo.py", line 1, in <module>
  11.     import urllib, urllister
  12. ImportError: No module named urllister