Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Python library for interacting with the Punchfork API
Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
punchfork Minor refactoring for consistency.
test
.gitignore
CHANGELOG
LICENSE
MANIFEST.in
README.md
VERSION
example.py
setup.py

README.md

punchfork-python

A Python library for interacting with the Punchfork API.

Prequisites

You must have a valid API key before using this library. You can sign up for a free key here: http://punchfork.com/api

Installation

Install with Pip:

pip install -e git+git://github.com/punchfork/punchfork-python#egg=punchfork

Usage

import punchfork

client = punchfork.Client('your-api-key')

search_results = client.search('macaroni n cheese')

for recipe in search_results.recipes:
    print "Recipe: ", recipe.title
    print "Source URL:", recipe.source_url
    print "Punchfork URL:", recipe.pf_url
    print "-------------------------------"

More examples can be found in example.py

Copyright © 2012 Punchfork, Inc. See LICENSE for more information

Something went wrong with that request. Please try again.