Scraping with Python 3 and Beautiful Soup

Activate Python Virtual Environment

From one's virtual env directory:

source bin/activate

It's nice to scrape within an interactive python session; so launch one via:


Beatiful Soup Techniques

Find All Matching Elements with find_all()

Find All Elements with a Matching Style Attribute

Find all h3 elements with style="text-align: center;":

soup.find_all('h3', style="text-align: center;")

Strip HTML from Results with get_text()



 python  beautiful soup  python 3  scraping