Skip to content

Instantly share code, notes, and snippets.

@yaminoma
Created September 15, 2016 10:54
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 yaminoma/807056d9ecbec7ba239e6bea090ac591 to your computer and use it in GitHub Desktop.
Save yaminoma/807056d9ecbec7ba239e6bea090ac591 to your computer and use it in GitHub Desktop.
#!/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