Skip to content

Instantly share code, notes, and snippets.

@b1ackturtle
Created September 5, 2016 13:49
Show Gist options
  • Save b1ackturtle/f09300578f7fc05ca751f14eb31c67ee to your computer and use it in GitHub Desktop.
Save b1ackturtle/f09300578f7fc05ca751f14eb31c67ee to your computer and use it in GitHub Desktop.
from bs4 import BeautifulSoup
import urllib2
response = urllib2.urlopen("https://python.org")
html = response.read()
soup = BeautifulSoup(html, "html.parser")
title = soup.title.string
print title
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment