Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Allows you to easily search and scrape recipes from http://foodnetwork.com

Project Description

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 History

Release History

This version
History Node

1.2

History Node

1.1

History Node

1.0

History Node

0.91

History Node

0.6

History Node

0.5

History Node

0.4

History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
food_network_wrapper-1.2.tar.gz (3.3 kB) Copy SHA256 Checksum SHA256 Source Sep 21, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting