{"id":17999076,"url":"https://github.com/wkrzywiec/tasty-python","last_synced_at":"2025-04-04T07:12:34.279Z","repository":{"id":52697567,"uuid":"244979448","full_name":"wkrzywiec/tasty-python","owner":"wkrzywiec","description":"Command Line Tool for finding recipes on Tasty.co (written in Python)","archived":false,"fork":false,"pushed_at":"2022-12-08T03:46:16.000Z","size":61,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T18:17:59.985Z","etag":null,"topics":["beautifulsoup4","cli","pipenv","pytest","python","python-click","python3","recipes","scraping-python","scraping-websites","web-scraper"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wkrzywiec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-04T18:53:36.000Z","updated_at":"2023-03-24T05:39:56.000Z","dependencies_parsed_at":"2023-01-24T08:40:13.664Z","dependency_job_id":null,"html_url":"https://github.com/wkrzywiec/tasty-python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wkrzywiec%2Ftasty-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wkrzywiec%2Ftasty-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wkrzywiec%2Ftasty-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wkrzywiec%2Ftasty-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wkrzywiec","download_url":"https://codeload.github.com/wkrzywiec/tasty-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247135157,"owners_count":20889421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["beautifulsoup4","cli","pipenv","pytest","python","python-click","python3","recipes","scraping-python","scraping-websites","web-scraper"],"created_at":"2024-10-29T22:09:57.233Z","updated_at":"2025-04-04T07:12:34.257Z","avatar_url":"https://github.com/wkrzywiec.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tasty Python\n![Python Master Workflow](https://github.com/wkrzywiec/tasty-python/workflows/Python%20Master%20Workflow/badge.svg) [![CodeFactor](https://www.codefactor.io/repository/github/wkrzywiec/tasty-python/badge)](https://www.codefactor.io/repository/github/wkrzywiec/tasty-python) [![codecov](https://codecov.io/gh/wkrzywiec/tasty-python/branch/master/graph/badge.svg)](https://codecov.io/gh/wkrzywiec/tasty-python) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n---\n\n**Tasty Python** application is a command line tool (CLI) which helps you find and get recipes from a popular cooking website - *https://tasty.co*.\n\n## Usage\n\n*Tasty Python* supports 3 command line methods:\n\n```\n$ pipenv run app.py --help\nUsage: app.py [OPTIONS] COMMAND [ARGS]...\n\nOptions:\n  --help  Show this message and exit.\n\nCommands:\n  find    Find recipes list that match provided query Arguments: query...\n  get     Get full recipe by its key Arguments: key {string} -- key or url...\n  launch  Launch the recipe in a web brower by its key Arguments: key...\n```\n\n#### `find` method\n```\n$ pipenv run app.py find --help\nUsage: app.py find [OPTIONS] QUERY\n\n  Find recipes list that match provided query\n\n  Arguments:     query {string} -- search query\n\nOptions:\n  --help  Show this message and exit.\n```\n\nExample usage:\n```\n$ pipenv run app.py find pizza\n\nThere are following results on the 1. page:\n\n        Pizza Margherita by Mario Batali\n                pizza-margherita-by-mario-batali\n                https://tasty.co/recipe/pizza-margherita-by-mario-batali\n\n\n        15-Minute Garlic Bread Pizza\n                15-minute-garlic-bread-pizza\n                https://tasty.co/recipe/15-minute-garlic-bread-pizza\n\n\n        Pizza Sticks 3-Ways\n                pizza-sticks-3-ways\n                https://tasty.co/recipe/pizza-sticks-3-ways\n\n```\n\n#### `get` method\n```\n$ pipenv run app.py get --help\nUsage: app.py get [OPTIONS] KEY\n\n  Get full recipe by its key\n\n  Arguments:     key {string} -- key or url of a recipe     url {boolean} --\n  indicates if first argument is a recipe key or its url\n\nOptions:\n  --url / --key  Indicates if you provide the full link to the recipe\n  --help         Show this message and exit.\n```\n\nExample usages:\n* get recipe by its key\n```\n$ pipenv run app.py get pizza-margherita-by-mario-batali\n\nPizza Margherita by Mario Batali\n        Source: https://tasty.co/recipe/pizza-margherita-by-mario-batali\n\n        Ingredients:\n\n        Dough\n                1 ¼ cups water (300 mL), warm\n                ¼ oz active dry yeast (10 g), 1 packet\n                1 ½ teaspoons sugar\n                3 ½ cups all-purpose flour (435 g)\n                2 tablespoons salt\n                ¼ cup extra virgin olive oil (60 mL)\n\n        Topping\n                2 cups tomato (400 g), strained\n                fresh basil\n                8 oz fresh mozzarella cheese (225 g)\n                olive oil\n                salt, to taste\n\n        Preparation:\n        1. In a small mixing bowl, whisk the warm water, yeast, and sugar together. Place in a warm place for 10 minutes, or until yeast is foamy.     \n        2. In a large mixing bowl, whisk together the flour and salt.\n        3. Make a well in the center of the dry ingredients and add the yeast mixture and olive oil. Stir the wet ingredients into the dry ingredients \nuntil the dough comes together and becomes difficult to stir.\n        4. Turn the dough out onto a lightly floured surface and knead until the dough is smooth, about 5 minutes. Add small amounts of flour as necessary to prevent sticking.\n        5. Transfer the dough to a large bowl coated with olive oil. Cover with a towel and let rise in a warm place for 1-2 hours, until the dough has doubled in size.\n        6. Once the dough has doubled in size, remove the towel and punch the dough down. Turn out onto a lightly floured surface and divide the dough \ninto 6-8 pieces, and shape each into a small ball.\n        7. Place the formed balls onto a baking sheet and rest, covered, for 15 minutes.\n        8. To shape the individual pizzas, press out the dough balls onto a lightly floured surface. Create a slightly thicker rim around the outside of the dough and continue to stretch into a 9- to 10-inch (23-25 cm) round.\n        9. Heat a large cast-iron pan over medium heat, until the pan just begins to smoke, about 5 minutes.\n        10. Carefully transfer a stretched pizza round onto the hot pan. Leave to cook for 2-3 minutes (the dough should begin bubbling up) until lightly tanned with a few dark spots. Flip and continue to cook on the other side for 1-2 minutes longer, until the crust is completely dry.\n        11. Remove the dough to rest on a wire rack and repeat with remaining dough.\n        12. To finish the pizzas, top each crust with tomato sauce and fresh mozzarella.\n        13. Transfer to the oven and broil for 7 or 8 minutes, until the cheese has melted and the crust has developed a nice char in spots. Watch closely and move to a lower rack if necessary.\n        14. Finish each pizza with fresh basil, a drizzle of olive oil, and a sprinkle of salt.\n        15. Enjoy!\n```\n\n* get recipe by its url\n```\n$ pipenv run app.py get https://tasty.co/recipe/pizza-margherita-by-mario-batali --url\n\nSame result as above\n\n```\n\n#### `launch` method\n```\n$ pipenv run app.py launch --help\nUsage: app.py launch [OPTIONS] KEY\n\n  Launch the recipe in a web brower by its key\n\n  Arguments:     key {string} -- key of a recipe\n\nOptions:\n  --help  Show this message and exit.\n```\n\n## Prerequsites\n\nIn order to run tha application you need to have installed:\n* Python v3.8\n* Pipenv version 2018.11.26","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwkrzywiec%2Ftasty-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwkrzywiec%2Ftasty-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwkrzywiec%2Ftasty-python/lists"}