A webscraping package to search for recipes URL's
Project description
recipe-searchers
A simple web / api scraping tool for searching for recipe links, inspired by (and possibly for use with) recipe-scapers.
To install
pip install recipe-searchers
To use
from recipe_searchers import search_recipe
result = search_recipe("panna cotta")
print(f"Found results: \n {result}")
search_recipe()
returns an object in the form of:
@dataclass
class SearchResult:
keyword : str
# str = website, List = results
results : Dict[str, List[RecipeLink]]
Where results is a pair of Website for every website it has found results and a list of results.
Searchers available for:
- allrecipes.com - Through scraping
- bbc.co.uk - Through scraping
- bbcgoodfood.com - Through scraping
- bonappetit.com - Through scraping
- food.com - Through REST API
- thewoksoflife.com - Through scraping
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
recipe-searchers-0.0.7.tar.gz
(6.0 kB
view hashes)
Built Distribution
Close
Hashes for recipe_searchers-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a40a3c5ec4272530b562aeaa45058789f7f651c012d99e2509f11198d711c82 |
|
MD5 | 27571c49da2bdd466b15328ab51c9e87 |
|
BLAKE2b-256 | e23eb9d4f0596cc6122798903dc50751121988cb49174f08fbe8f6267197b522 |