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:
python
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()
soup.get_text()