Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Python library for interacting with the Punchfork API

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 punchfork
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 CHANGELOG
Octocat-spinner-32 LICENSE
Octocat-spinner-32 MANIFEST.in
Octocat-spinner-32 README.md
Octocat-spinner-32 VERSION
Octocat-spinner-32 example.py
Octocat-spinner-32 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.