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
- bbcgoodfooc.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.6.tar.gz
(5.7 kB
view hashes)
Built Distribution
Close
Hashes for recipe_searchers-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a6a082abd4141d876501d27c7dd26887719c2e53212416ca02df68059f4e870 |
|
MD5 | 3a9e74df0f151f25e44f680a4caf8ab4 |
|
BLAKE2b-256 | 02e973efdf22c21bbf4250f0f8b500eb5411122db570a943a8212c37834f00f1 |