Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JohnDeJesus22/ec1f264d0a718c779d1b296c7b0e6a12 to your computer and use it in GitHub Desktop.
Save JohnDeJesus22/ec1f264d0a718c779d1b296c7b0e6a12 to your computer and use it in GitHub Desktop.
Medium web scrap p2
# Parse web_page
soup = BeautifulSoup(web_page.text, 'html.parser')
# Create set of results based on HTML tags with desired data
results = soup.find_all('div', attrs={'class':'matrix-content'})
results = results[29:]
# See the length of the results
len(results)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment