Created
April 3, 2019 20:35
-
-
Save JohnDeJesus22/ec1f264d0a718c779d1b296c7b0e6a12 to your computer and use it in GitHub Desktop.
Medium web scrap p2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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