Skip to content

Instantly share code, notes, and snippets.

@chaosmail
Created July 15, 2014 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chaosmail/b22408c2a9949ec85056 to your computer and use it in GitHub Desktop.
Save chaosmail/b22408c2a9949ec85056 to your computer and use it in GitHub Desktop.
Simple Webcrawler
from bs4 import BeautifulSoup
import urllib.request
url = "http://www.google.com/"
res = urllib.request.urlopen(url)
html = res.read()
soup = BeautifulSoup(html)
print(soup)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment