A simple example of web scraping and crawling with BeautifulSoup4 python package.
Created for UW-Madison Cart Lab Education Series (CLES)
Install BeautifulSoup and Requests to run these examples!
The scripts scrape my portfolio for all the projects on the page. portfolioAscrape.py goes to each project page to extract the text description of each project.
If you'd rather write the outputs to a file, simply replace all print statements with file writing code:
file = open("Projects.txt","w")
for project in projects:
file.write(project.text+"\n")
file.close()
This code is a must-have for any hardcore Ross Thorn fan that wants to keep up to date on what I'm doing.