Created
September 5, 2016 13:49
-
-
Save b1ackturtle/f09300578f7fc05ca751f14eb31c67ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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