Inspiration
Honestly, I just really like cooking, but I feel like I never know what I want to do. I did this entirely because it would help me and another friend
What it does
You pick a difficulty between 1-4 or none, and the amount of time you want to spend, (30, 60, 90, 120, 180, 180+ minutes) or neither! depending on what you inputted, the dictionary filters itself such that it can pick a random recipe from wiki cookbook that meets the given criteria, however, you can also enter none for both and you get a fully random recipe
How we built it
2 helper functions using request scraped the entirety of wiki cookbook, that took more than an hour to complete, and made dictionaries setting the recipes as values for keys. One dictionary had difficulty keys, one had time keys. After that just, made a program that prints out the recipe depending on user input
Challenges we ran into
Wiki cookbook is... not well regulated. There were a lot of weird discrepancies between how difficulty was written or how time was written, so with a bit of manual editing (pain) and also making a quick little code to bunch them up together for a more user friendly experience, I managed to get the dictionary to be less of an eye sore
Another issue was writing the recipe as the output. Even now it's a little wonky, but before, every wiki link messed up with the text a lot.
Accomplishments that we're proud of
Honestly, just doing something and realizing that, hey, projects aren't the scariest thing ever was the best part of this
What we learned
How to parse websites for data en masse, and also a bit of GUI for python. I looked over Django a bit I think it was called but it scared me and I backed off
What's next for Divined Cookbook
Honestly, probably nothing for a while. Maybe after I get more practice in with programming and sigh git, I will try a 2.0 with a larger database, ability to search by ingredient, by country of origin, by method of cooking, and also maybe implementing it as a discord bot with a dish of the day for people to cook. There would be a channel where either they post a picture of it or how they made it if they deviated from the recipe (foggy on the details) then it uses ai image recognition and generates a top 3
Built With
- cookbook
- customtkinter
- python
- request
- wiki
Log in or sign up for Devpost to join the conversation.