Tasty Scraper avatar

Tasty Scraper

Try for free

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

View all Actors
Tasty Scraper

Tasty Scraper

epctex/tasty-scraper
Try for free

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

Gather data on millions of recipes, articles, and compilations. Extract descriptions, images, ingredients, videos, and more. Customize your searches with filters for targeted results.

Actor - Tasty Scraper

Tasty scraper

Since Tasty doesn't provide a good and free API, this actor should help you to retrieve data from it. This actor can provide you with very detailed

The Tasty data scraper supports the following features:

  • Search any keyword - You can search for any keyword and find the recipes according to your needs.

  • Scrape recipes - Scrape any recipes in a very detailed and structured from Tasty.

  • Scrape articles - Fetch any articles that have been published on Tasty.

  • Scrape compilations - You can scrape any compilation that you need. It is structured and provides all the detailed information.

  • Scrape topics - If you want to scrape a specific topic with a huge list of recipes, you can just provide it and Tasty Scraper will do the rest.

  • Scrape ingredients - You can even scrape the list that is based on the ingredients.

Bugs, fixes, updates, and changelog

This scraper is under active development. If you have any feature requests you can create an issue from here.

Input Parameters

The input of this scraper should be JSON containing the list of pages on Tasty that should be visited. Possible fields are:

  • search: (Optional) (String) Keyword that you want to search on Tasty.

  • startUrls: (Optional) (Array) List of Tasty URLs. You should only provide the recipe, article, compilation, search, topic, and ingredient URLs.

  • includeReviews: (Optional) (Boolean) This will add all the reviews that Tasty provides into the detail objects. Please keep in mind that the time and resources the actor uses will increase proportionally to the number of reviews.

  • endPage: (Optional) (Number) Final number of page that you want to scrape. The default is Infinite. This applies to all search requests and startUrls individually.

  • maxItems: (Optional) (Number) You can limit scraped items. This should be useful when you search through the big lists or search results.

  • proxy: (Required) (Proxy Object) Proxy configuration.

  • extendOutputFunction: (Optional) (String) Function that takes a JQuery handle ($) as an argument and returns an object with data.

  • customMapFunction: (Optional) (String) Function that takes each object's handle as an argument and returns the object with executing the function.

This solution requires the use of Proxy servers, either your own proxy servers or you can use Apify Proxy.

Tip

When you want to have a scrape over a specific item URL, just copy and paste the link as one of the startUrl.

If you would like to scrape only the first page of a list then put the link for the page and have the endPage as 1.

With the last approach that is explained above you can also fetch any interval of pages. If you provide the 5th page of a list and define the endPage parameter as 6 then you'll have the 5th and 6th pages only.

Compute Unit Consumption

The actor is optimized to run blazing fast and scrape many items as possible. Therefore, it forefronts all item detail requests. If the actor doesn't block very often it'll scrape 100 items in 1 minute with ~0.04-0.06 compute units.

Tasty Scraper Input example

1{
2  "startUrls":[
3    "https://tasty.co/search?q=avocado&sort=popular",
4    "https://tasty.co/recipe/tuna-avocado-tartine",
5    "https://tasty.co/article/melissaharrison/easy-dinner-recipes",
6    "https://tasty.co/compilation/4-unique-ways-to-cook-eggs",
7    "https://tasty.co/topic/healthy",
8    "https://tasty.co/ingredient/chicken"
9  ],
10  "search":"avocado",
11  "proxy":{
12    "useApifyProxy": true
13  },
14  "maxItems": 50,
15  "endPage": 2
16}

During the Run

During the run, the actor will output messages letting you know what is going on. Each message always contains a short label specifying which page from the provided list is currently specified. When items are loaded from the page, you should see a message about this event with a loaded item count and total item count for each page.

If you provide incorrect input to the actor, it will immediately stop with a failure state and output an explanation of what is wrong.

Tasty Export

During the run, the actor stores results into a dataset. Each item is a separate item in the dataset.

You can manage the results in any language (Python, PHP, Node JS/NPM). See the FAQ or our API reference to learn more about getting results from this Tasty actor.

Scraped Tasty Output

The structure of each item in Tasty looks like this:

Recipe Detail

https://api.apify.com/v2/datasets/7uHdEg8f6mODflKcJ/items?clean=true&format=json

Article Detail

https://api.apify.com/v2/datasets/d0LQfge68CZGItUNU/items?clean=true&format=json

Compilation Detail

https://api.apify.com/v2/datasets/qwtTygaITMW1klZpc/items?clean=true&format=json

Contact

Please visit us through epctex.com to see all the products that are available for you. If you are looking for any custom integration or so, please reach out to us through the chat box in epctex.com. In need of support? devops@epctex.com is at your service.

Developer
Maintained by Community

Actor Metrics

  • 3 monthly users

  • 1 star

  • >99% runs succeeded

  • Created in May 2022

  • Modified 11 hours ago

Categories