In [8]: from bs4 import BeautifulSoup In [9]: from selenium import webdriver In [10]: driver = webdriver.Firefox() In [11]: driver.get('http://news.ycombinator.com') In [12]: html = driver.page_source In [13]: soup = BeautifulSoup(html) In [14]: for tag in soup.find_all('title'): ....: print tag.text ....: ....: Hacker News
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter