Skip to main content

Build Status Coverage Status PyPI Python Versions

Search your favorite recipes from Food Network and then scrape their contents.

Installation

pip install food_network_wrapper

Usage

import methods

from food_network_wrapper import recipe_search, get_n_recipes, scrape_recipe

Search recipes

rthumbnails = recipe_search("pad thai")

Returns up to 10 RThumbnail objects in a list

To get more recipes you have to increment the page parameter

rthumbnails = recipe_search("pad thai", page=2)

Or you can use the shortcut method

rthumbnails = get_n_recipes("pad thai", n=31)

Scrape a recipe

recipe = scrape_recipe("http://www.foodnetwork.com/recipes/food-network-kitchens/grape-jelly-breakfast-tarts-recipe.html")

Use search and scrape together

rthumbnails = get_n_recipes("pad thai", n=31)
recipes = []
for i in rthumbnails:
   recipe = scrape_recipe(i.url)
   recipes.append(recipe)

For more examples check out `demo.py <https://github.com/benawad/food_network_wrapper/blob/master/demo.py>`__

Release files for food_network_wrapper 1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for food_network_wrapper 1.2
File Size Uploaded
food_network_wrapper-1.2.tar.gz 3.3 kB Details

Release files / food_network_wrapper-1.2.tar.gz

Download URL food_network_wrapper-1.2.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f2e47e904f3b3dc2814caeb76ea03f17f4c5597476890e8af07b1f849a746531
BLAKE2b-256 checksum
How to use checksums
2c6029e77c8fffc1cebe699416af59e10480f9e21f1596165835025db9644d28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.2 This release

1 release file

1.1

1 release file

1.0

1 release file

0.91

1 release file

0.6

1 release file

0.5

1 release file

0.4

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page