Created
September 15, 2016 10:54
-
-
Save yaminoma/807056d9ecbec7ba239e6bea090ac591 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import urllib | |
from BeautifulSoup import BeautifulSoup | |
url = "http://www.vim.org/" | |
page = urllib.urlopen(url) | |
source_code = page.read() | |
soup = BeautifulSoup(source_code).title.string | |
print soup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment