-
Create a text file in a python 2.7 virtual environment. (If you don't have one and don't know how to set one up, go here.) The name doesn't matter, but it is important to make sure that it's a python file.
-
Copy text from webscraper.py into that text file. That text can be found here.
-
If you don't have BeautifulSoup4 installed, you'll need that. In the command line, type pip install BeautifulSoup4. Wait for it to install, then continue to the next part.
-
The program is ready to run! Run the program in whatever environment you like. Feel free to change the html elements to whatever you like.
How to Scrape Websites With Python and BeautifulSoup by Justin Yek