Skip to content

Instantly share code, notes, and snippets.

@mygeekdaddy
Created April 8, 2014 17:47
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 mygeekdaddy/10162205 to your computer and use it in GitHub Desktop.
Save mygeekdaddy/10162205 to your computer and use it in GitHub Desktop.
WebpageTitle
import urllib
import clipboard
import bs4
import console
link = clipboard.get()
console.show_activity()
soup = bs4.BeautifulSoup(urllib.urlopen(link))
pageTitle = soup.title.string +' '+ link
console.hide_activity()
console.clear()
print pageTitle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment