O'Reilly logo
  • Stuart Spinner thinks this is interesting:

from bs4 import BeautifulSoup session = requests.Session() headers = {'User-Agent':'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5)' 'AppleWebKit 537.36 (KHTML, like Gecko) Chrome', 'Accept':'text/html,application/xhtml+xml,application...

From

Cover of Web Scraping with Python, 2nd Edition

Note

Final method call should read: ...get_text())