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
Built Distribution
File details
Details for the file recipe-searchers-0.0.7.tar.gz
.
File metadata
- Download URL: recipe-searchers-0.0.7.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e64b60f1cdfacbf9349c8c137e323a725da4f93e9f8ffae353406396fb34dea4
|
|
MD5 |
2521e079702a719f01965f6fa4eee210
|
|
BLAKE2b-256 |
ae376934480a0f172559dd2aeda484c3b65ebc6823e200fbc5dad87d47589d14
|
File details
Details for the file recipe_searchers-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: recipe_searchers-0.0.7-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
4a40a3c5ec4272530b562aeaa45058789f7f651c012d99e2509f11198d711c82
|
|
MD5 |
27571c49da2bdd466b15328ab51c9e87
|
|
BLAKE2b-256 |
e23eb9d4f0596cc6122798903dc50751121988cb49174f08fbe8f6267197b522
|