r/madeinpython • • Apr 12 '21

How to cook with Python

Hey all, I had a lot of fun with this one. I was struggling to think of what to cook for dinner one night and thought this would be a great weekend project. I built a Telegram bot to take commands (a list of ingredients I have on hand) and find a recipe using those ingredients with the Spoonacular API (all this is done for free).

Full tutorial on how to design and implement something like this is here (code included): https://youtu.be/FYfX9Wn76_E

I also built in some fun functionality to get a random cocktail recipe, random recipe, and a random taco recipe. I hope you like it!

26 Upvotes

4 comments sorted by

2

u/mab97 Apr 12 '21

Bot link?

2

u/MJMarto Apr 12 '21

1

u/mab97 Apr 12 '21

this is the source code I wanted the telegram bot link?

4

u/MJMarto Apr 12 '21

Yes that's the source code. I turned down the bot b/c I only get 150 calls / day to the recipe API on the free tier. If there's enough interest I'd consider turning it back on and running it for everyone with a Patreon link or something.