What it does
This program takes any chosen food along with 2 chosen locations and then compares the quality of that food in each area.
How we built it
The foundation was already built and I added the last few parts to get it working as part of the starter kit. Then, I modified the Python code mainly to add a few new features and fix some ugly parts. These features include an evaluation of which location is overall better by taking the average review score and subtracting the average prices. So if a place had amazing reviews but higher average prices, the score would compensate for how expensive it is. Another feature I added was the ability to search multiple pages. This was done by adding "&start=x" where x would start at 0 for 1 page then for every page go up by 10. I used a for loop that repeated the web scraper gathering prices and reviews for each page. I modified the generated web page by adding a gradient to the image borders and changing the color of the title. I was inexperienced in html and css so I had a hard time doing anything too advanced. Finally, I also fixed the program print repeated lists of prices and reviews in the console along with rounding the average scores when they were printed.
Challenges we ran into
One challenge was getting the module Beautiful Soup working as even after I installed it locally, there where still errors when importing from it. I had to switch to using repl.it but even there, I had to keep reinstalling Beautiful Soup every time I reloaded the website. Another one was that the generated web page was not updated after I added searching on more pages. This was due to the web scraper getting the images on every page so I limited to the first page and it worked again.
Accomplishments that we're proud of
Adding the functionality to choose the amount of pages the web scraper searches on Yelp.
What we learned
How Python can be used to access data from web pages and how it is used alongside html which is a language I am unfamiliar with.
What's next for Comparing Foods in Different Places
Improving the generated web page by adding more information such as the final evaluation and more information for each location.
Log in or sign up for Devpost to join the conversation.