Due: Tuesday, March 23, 8pm
Try a simpler scraping exercise.
Find a website that has a search function, search for something, and use the browser inspector to examine the HTML results. For example, searching for "widgets" on Ebay.
Copy/paste the URL into a Python program to make a
request to get()
that page, get its content, and
create a BeautifulSoup
object.
Now, using Beautiful Soup, target the HTML element containing
the list results. For each one, access 2-3 specific properties
for each result, and simply print()
them in some
way. For example:
Widget 1, price $X, location Y etc ...