Skip to content

Instantly share code, notes, and snippets.

@algotrader-dotcom
Created October 7, 2015 06:13
Show Gist options
  • Save algotrader-dotcom/c1efa6e23c135a547eae to your computer and use it in GitHub Desktop.
Save algotrader-dotcom/c1efa6e23c135a547eae to your computer and use it in GitHub Desktop.
[Python] Get the title of a web page
from bs4 import BeautifulSoup
soup = BeautifulSoup(html)
print soup.title.string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment