Allrecipes Advanced Scraper avatar

Allrecipes Advanced Scraper

Try for free

3 days trial then $25.00/month - No credit card required now

View all Actors
Allrecipes Advanced Scraper

Allrecipes Advanced Scraper

epctex/allrecipes-advanced-scraper
Try for free

3 days trial then $25.00/month - No credit card required now

Advanced scraping on Allrecipes for data on millions of recipes, articles, galleries, and many more. Crawl Recipes and extract descriptions, images, steps, ingredients, nutrition, and all other properties. You can specify search terms, filters, mappings, and much more.

You can access the Allrecipes Advanced Scraper programmatically from your own Python applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1from apify_client import ApifyClient
2
3# Initialize the ApifyClient with your Apify API token
4# Replace '<YOUR_API_TOKEN>' with your token.
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7# Prepare the Actor input
8run_input = {
9    "search": "cucumber",
10    "startUrls": [
11        "https://www.allrecipes.com/cook/onewholesomemeal",
12        "https://www.allrecipes.com/cook/foodwisheswithchefjohn/collection/bookmarks_5e9f2dfb-c75b-8640-f3ff-7897a9ed3897",
13        "https://www.allrecipes.com/search/results/?search=cucumber",
14        "https://www.allrecipes.com/gallery/butter-rich-recipes/",
15        "https://www.allrecipes.com/author/melanie-fincher/",
16        "https://www.allrecipes.com/article/how-to-clean-air-fryer/",
17        "https://www.allrecipes.com/recipe/261911/chef-johns-croissants/",
18    ],
19    "maxItems": 20,
20    "endPage": 1,
21    "extendOutputFunction": "($) => { return {} }",
22    "customMapFunction": "(object) => { return {...object} }",
23    "proxy": { "useApifyProxy": True },
24}
25
26# Run the Actor and wait for it to finish
27run = client.actor("epctex/allrecipes-advanced-scraper").call(run_input=run_input)
28
29# Fetch and print Actor results from the run's dataset (if there are any)
30print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
31for item in client.dataset(run["defaultDatasetId"]).iterate_items():
32    print(item)
33
34# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

Allrecipes Data Extractor API in Python

The Apify API client for Python is the official library that allows you to use Allrecipes Advanced Scraper API in Python, providing convenience functions and automatic retries on errors.

Install the apify-client

pip install apify-client

Other API clients include:

Developer
Maintained by Community
Actor metrics
  • 2 monthly users
  • 1 star
  • 100.0% runs succeeded
  • Created in May 2022
  • Modified about 15 hours ago
Categories