The Daylife Cookbook is a collection of recipes to help you bootstrap applications that use the Daylife platform (DayPI).
These recipes come from Daylifers and the cookbook community, with entries ranging from sample code to tutorials, half baked ideas, and spotlights of the latest deployments of the DayPI.
Feel free to share, steal, criticize, applaud, and feed back!
API versions 4.0 and 4.2 have been deprecated. API v4.8 is the latest stable version available. Please check Release Notes for more information about different API versions.
Daylife is a perfect fit for our strategy of presenting the best and most tightly focused content, whether it is produced by us at USA TODAY or anywhere else on the Web. It helps us provide our readers with a full 360-degree view of a given topic, and adds depth and richness to niche areas important to our readers and advertisers.- Jeff Webber, SVP, USAToday.com
You guys have what seems like an amazingly powerful and easy to use API, we're pretty excited about playing with it and possibly integrating it with Hubdub. - Tom Griffith, Hubdub.com
It's amazing how simple this is to integrate into django. When a view is creating a page, it just calls a thin wrapper function that I put around the daypi module. - Bracket Boy
I found the Daylife API for PHP really easy to use, and coded something up quickly for my site, Brooklyn and Beyond - Brooklyn & Beyond
This tool makes it really easy to get a quick look or dive in deep thanks to our partner Daylife, who built a comprehensive service that yields up-to-the-minute results - The Washington Post
I was trying to make it work by using Google News RSS feeds but turned out impossible since they don't organize their data in the feeds. I now know its possible with the Daylife API - Akash Xavier
Is there a way to search an entire article to return peoples names mentioned in that article?
I would like to add a list of peoples names mentioned in an article and the bottom of the article eg. "Article on A", mentions "Person, A, B & C"
The API article_getTopics returns you the topics mentioned in the article.
You can use one of the following 2 values as an input to the article_id parameter for this call:
url -- The exact URL to the article that was published by the source in their RSS feed.
article_id -- the daylife article id
Plus, you can filter for types of topics say (only people and organization) by using include_topic_type=person&include_topic_type=organization . The valid topic types for the system are listed here - http://cookbook.daylife.com/node/101
I have been testing the above and noticed that some 'persons' are often not shown.
For example from: article_id: 069A1IKcQX6g1 returns only: PLACE Sydney and no PEOPLE
excerpt from article: "Associate Professor Paul Goldwater from the Women's and Children's Hospital...Dr Karen Waters from Sydney's Westmead Hospital says..."
I cant seem to see these two people in the returned PEOPLE variable?
Are the only people returned from article_getTopics people that are also linked in your database and not people's names in general?
article_getTopics
pagetribe,
The API article_getTopics returns you the topics mentioned in the article.
You can use one of the following 2 values as an input to the article_id parameter for this call:
Plus, you can filter for types of topics say (only people and organization) by using include_topic_type=person&include_topic_type=organization . The valid topic types for the system are listed here - http://cookbook.daylife.com/node/101
-- Vineet
Not all peoples names show up under topics
excerpt from article: "Associate Professor Paul Goldwater from the Women's and Children's Hospital...Dr Karen Waters from Sydney's Westmead Hospital says..."
I cant seem to see these two people in the returned PEOPLE variable?
Are the only people returned from article_getTopics people that are also linked in your database and not people's names in general?
not all names are topics
pagetribe,
Not all names are topics in our system.
Vineet
Great! that worked.