mirror of
https://gitlab.silvrtree.co.uk/martind2000/rss-braider.git
synced 2025-02-10 19:09:16 +00:00
Cleaning up examples to use NPR standard feeds
This commit is contained in:
parent
be96d7481b
commit
95ac0fed01
@ -1,21 +1,22 @@
|
||||
var feed = {
|
||||
"feed_name" : "test file feed",
|
||||
"feed_name" : "feed",
|
||||
"default_count" : 1,
|
||||
"no_cdata_fields" : ['description'],
|
||||
"no_cdata_fields" : [],
|
||||
"meta" : {
|
||||
"title": "Test File Feed",
|
||||
"description": "This feed comes from a file",
|
||||
// "url": "http://example.com/feed/",
|
||||
},
|
||||
'custom_namespaces' : {
|
||||
"title": "NPR Braided Feed",
|
||||
"description": "This is a test of two NPR sources from file"
|
||||
},
|
||||
"sources" : [
|
||||
{
|
||||
"name" : "file",
|
||||
"name" : "NPR",
|
||||
"count" : 1,
|
||||
"file_path" : __dirname + "/feed_source.xml",
|
||||
"file_path" : __dirname + "/../feed_xml/npr.xml",
|
||||
},
|
||||
|
||||
{
|
||||
"name" : "NPR Health",
|
||||
"count" : 1,
|
||||
"file_path" : __dirname + "/../feed_xml/npr_health.xml",
|
||||
}
|
||||
]
|
||||
};
|
||||
exports.feed = feed;
|
@ -1,12 +1,11 @@
|
||||
var feed = {
|
||||
"feed_name" : "test file feed",
|
||||
"feed_name" : "feed with plugins",
|
||||
"default_count" : 1,
|
||||
"no_cdata_fields" : ['description'],
|
||||
"plugins" : ['kqed', 'content_encoded', 'wfw_slash_comments', 'add_media_thumbnail'],
|
||||
"no_cdata_fields" : [],
|
||||
"plugins" : ['content_encoded'],
|
||||
"meta" : {
|
||||
"title": "Test File Feed",
|
||||
"description": "This feed comes from a file",
|
||||
// "url": "http://example.com/feed/",
|
||||
"title": "NPR Braided Feed",
|
||||
"description": "This is a test of two NPR sources from file. Plugins are applied."
|
||||
},
|
||||
'custom_namespaces' : {
|
||||
"slash" : "http://purl.org/rss/1.0/modules/slash/",
|
||||
@ -17,11 +16,15 @@ var feed = {
|
||||
},
|
||||
"sources" : [
|
||||
{
|
||||
"name" : "file",
|
||||
"name" : "NPR",
|
||||
"count" : 1,
|
||||
"file_path" : __dirname + "/feed_source.xml",
|
||||
"file_path" : __dirname + "/../feed_xml/npr.xml",
|
||||
},
|
||||
|
||||
{
|
||||
"name" : "NPR Health",
|
||||
"count" : 1,
|
||||
"file_path" : __dirname + "/../feed_xml/npr_health.xml",
|
||||
}
|
||||
]
|
||||
};
|
||||
exports.feed = feed;
|
151
examples/feed_xml/npr.xml
Normal file
151
examples/feed_xml/npr.xml
Normal file
@ -0,0 +1,151 @@
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<rss xmlns:npr="http://www.npr.org/rss/" xmlns:nprml="http://api.npr.org/nprml" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
|
||||
<channel>
|
||||
<title>News</title>
|
||||
<link>http://www.npr.org/templates/story/story.php?storyId=1001</link>
|
||||
<description>NPR news, audio, and podcasts. Coverage of breaking stories, national and world news, politics, business, science, technology, and extended coverage of major national and world events.</description>
|
||||
<language>en</language>
|
||||
<copyright>Copyright 2015 NPR - For Personal Use Only</copyright>
|
||||
<generator>NPR API RSS Generator 0.94</generator>
|
||||
<lastBuildDate>Tue, 10 Feb 2015 18:56:00 -0500</lastBuildDate>
|
||||
<image>
|
||||
<url>http://media.npr.org/images/podcasts/primary/npr_generic_image_300.jpg?s=200</url>
|
||||
<title>News</title>
|
||||
<link>http://www.npr.org/templates/story/story.php?storyId=1001</link>
|
||||
</image>
|
||||
<item>
|
||||
<title>Jon Stewart Will Leave 'The Daily Show' This Year </title>
|
||||
<description>Stewart let the news slip during a taping of his show today. Comedy Central said Stewart will remain at the helm of the influential satire show until "later this year."</description>
|
||||
<pubDate>Tue, 10 Feb 2015 18:56:00 -0500</pubDate>
|
||||
<link>http://www.npr.org/blogs/thetwo-way/2015/02/10/385303394/jon-stewart-will-leave-the-daily-show-this-year?utm_medium=RSS&utm_campaign=news</link>
|
||||
<guid>http://www.npr.org/blogs/thetwo-way/2015/02/10/385303394/jon-stewart-will-leave-the-daily-show-this-year?utm_medium=RSS&utm_campaign=news</guid>
|
||||
<content:encoded><![CDATA[<p>Stewart let the news slip during a taping of his show today. Comedy Central said Stewart will remain at the helm of the influential satire show until "later this year."</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=385303394">» E-Mail This</a></p>]]></content:encoded>
|
||||
<dc:creator>Eyder Peralta</dc:creator>
|
||||
</item>
|
||||
<item>
|
||||
<title>Proposed Law In Puerto Rico Would Fine Parents Of Obese Children </title>
|
||||
<description>Education officials would identify the children and parents would have six months to get them to lose weight. If they don't, after another six-month period, parents could face a hefty fine.</description>
|
||||
<pubDate>Tue, 10 Feb 2015 17:49:00 -0500</pubDate>
|
||||
<link>http://www.npr.org/blogs/thetwo-way/2015/02/10/385284471/proposed-law-in-puerto-rico-would-fine-parents-of-obese-children?utm_medium=RSS&utm_campaign=news</link>
|
||||
<guid>http://www.npr.org/blogs/thetwo-way/2015/02/10/385284471/proposed-law-in-puerto-rico-would-fine-parents-of-obese-children?utm_medium=RSS&utm_campaign=news</guid>
|
||||
<content:encoded><![CDATA[<p>Education officials would identify the children and parents would have six months to get them to lose weight. If they don't, after another six-month period, parents could face a hefty fine.</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=385284471">» E-Mail This</a></p>]]></content:encoded>
|
||||
<dc:creator>Eyder Peralta</dc:creator>
|
||||
</item>
|
||||
<item>
|
||||
<title>Chelsea Manning To Be 'Guardian' Columnist</title>
|
||||
<description>The former Army intelligence analyst, who was sentenced to 35 years in prison for leaking classified information, will write for the newspaper's U.S. website. She won't be paid.</description>
|
||||
<pubDate>Tue, 10 Feb 2015 17:43:00 -0500</pubDate>
|
||||
<link>http://www.npr.org/blogs/thetwo-way/2015/02/10/385294027/chelsea-manning-to-be-guardian-columnist?utm_medium=RSS&utm_campaign=news</link>
|
||||
<guid>http://www.npr.org/blogs/thetwo-way/2015/02/10/385294027/chelsea-manning-to-be-guardian-columnist?utm_medium=RSS&utm_campaign=news</guid>
|
||||
<content:encoded><![CDATA[<p>The former Army intelligence analyst, who was sentenced to 35 years in prison for leaking classified information, will write for the newspaper's U.S. website. She won't be paid.</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=385294027">» E-Mail This</a></p>]]></content:encoded>
|
||||
<dc:creator>Krishnadev Calamur</dc:creator>
|
||||
</item>
|
||||
<item>
|
||||
<title>After Ruling, Alabama Faces Hodgepodge Of Same-Sex Marriage Policies</title>
|
||||
<description>Gay rights advocates have asked a federal court to order probate judges in Alabama to issue marriage licenses to same-sex couples.</description>
|
||||
<pubDate>Tue, 10 Feb 2015 17:33:00 -0500</pubDate>
|
||||
<link>http://www.npr.org/2015/02/10/385267272/after-ruling-alabama-faces-hodgepodge-of-same-sex-marriage-policies?utm_medium=RSS&utm_campaign=news</link>
|
||||
<guid>http://www.npr.org/2015/02/10/385267272/after-ruling-alabama-faces-hodgepodge-of-same-sex-marriage-policies?utm_medium=RSS&utm_campaign=news</guid>
|
||||
<content:encoded><![CDATA[<p>Gay rights advocates have asked a federal court to order probate judges in Alabama to issue marriage licenses to same-sex couples.</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=385267272">» E-Mail This</a></p>]]></content:encoded>
|
||||
<dc:creator>Debbie Elliott</dc:creator>
|
||||
</item>
|
||||
<item>
|
||||
<title>Newly Discovered Footage Shows Sinking Of SS Eastland</title>
|
||||
<description>Robert Siegel speaks with grad student Jeff Nichols about his recent find of footage from the 1915 SS Eastland disaster in Chicago.</description>
|
||||
<pubDate>Tue, 10 Feb 2015 17:23:17 -0500</pubDate>
|
||||
<link>http://www.npr.org/2015/02/10/385267251/newly-discovered-footage-shows-sinking-of-ss-eastland?utm_medium=RSS&utm_campaign=news</link>
|
||||
<guid>http://www.npr.org/2015/02/10/385267251/newly-discovered-footage-shows-sinking-of-ss-eastland?utm_medium=RSS&utm_campaign=news</guid>
|
||||
<content:encoded><![CDATA[<p>Robert Siegel speaks with grad student Jeff Nichols about his recent find of footage from the 1915 SS Eastland disaster in Chicago.</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=385267251">» E-Mail This</a></p>]]></content:encoded>
|
||||
</item>
|
||||
<item>
|
||||
<title>Guess How Much Of Uncle Sam's Money Goes To Foreign Aid? Guess Again!</title>
|
||||
<description>A poll shows that Americans have no clue about the percent of the budget pie that is directed to foreign aid. But maybe it's not our fault.</description>
|
||||
<pubDate>Tue, 10 Feb 2015 17:17:00 -0500</pubDate>
|
||||
<link>http://www.npr.org/blogs/goatsandsoda/2015/02/10/383875581/guess-how-much-of-uncle-sams-money-goes-to-foreign-aid-guess-again?utm_medium=RSS&utm_campaign=news</link>
|
||||
<guid>http://www.npr.org/blogs/goatsandsoda/2015/02/10/383875581/guess-how-much-of-uncle-sams-money-goes-to-foreign-aid-guess-again?utm_medium=RSS&utm_campaign=news</guid>
|
||||
<content:encoded><![CDATA[<p>A poll shows that Americans have no clue about the percent of the budget pie that is directed to foreign aid. But maybe it's not our fault.</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=383875581">» E-Mail This</a></p>]]></content:encoded>
|
||||
<dc:creator>Poncie Rutsch</dc:creator>
|
||||
</item>
|
||||
<item>
|
||||
<title>California's Strawberry Feud Ends, But Who Will Breed New Berries?</title>
|
||||
<description>Strawberry farmers have dropped a lawsuit against the University of California, Davis, and the university has hired a new strawberry breeder. But the future of academic berry breeding is uncertain.</description>
|
||||
<pubDate>Tue, 10 Feb 2015 17:06:00 -0500</pubDate>
|
||||
<link>http://www.npr.org/blogs/thesalt/2015/02/10/384982148/californias-strawberry-feud-ends-but-who-will-breed-new-berries?utm_medium=RSS&utm_campaign=news</link>
|
||||
<guid>http://www.npr.org/blogs/thesalt/2015/02/10/384982148/californias-strawberry-feud-ends-but-who-will-breed-new-berries?utm_medium=RSS&utm_campaign=news</guid>
|
||||
<content:encoded><![CDATA[<p>Strawberry farmers have dropped a lawsuit against the University of California, Davis, and the university has hired a new strawberry breeder. But the future of academic berry breeding is uncertain.</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=384982148">» E-Mail This</a></p>]]></content:encoded>
|
||||
<dc:creator>Dan Charles</dc:creator>
|
||||
</item>
|
||||
<item>
|
||||
<title>When It's Hard To Get A Vaccine Exemption, More Kids Get Shots</title>
|
||||
<description>Robert Siegel speaks to Emory University epidemiologist Dr. Saad Omer about his research into state laws covering non-medical vaccine exemptions.</description>
|
||||
<pubDate>Tue, 10 Feb 2015 17:00:09 -0500</pubDate>
|
||||
<link>http://www.npr.org/2015/02/10/385267216/when-its-hard-to-get-a-vaccine-exemption-more-kids-get-shots?utm_medium=RSS&utm_campaign=news</link>
|
||||
<guid>http://www.npr.org/2015/02/10/385267216/when-its-hard-to-get-a-vaccine-exemption-more-kids-get-shots?utm_medium=RSS&utm_campaign=news</guid>
|
||||
<content:encoded><![CDATA[<p>Robert Siegel speaks to Emory University epidemiologist Dr. Saad Omer about his research into state laws covering non-medical vaccine exemptions.</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=385267216">» E-Mail This</a></p>]]></content:encoded>
|
||||
</item>
|
||||
<item>
|
||||
<title>With New Moves, Russia's Parliament Looks To Rewrite History</title>
|
||||
<description>Russia's seizure of Crimea has been widely criticized. But what if Crimea was given away illegally to Ukraine back in 1954? Russian lawmakers are hard at work on their own version of history.</description>
|
||||
<pubDate>Tue, 10 Feb 2015 16:58:51 -0500</pubDate>
|
||||
<link>http://www.npr.org/blogs/parallels/2015/02/10/385197419/with-new-moves-russias-parliament-looks-to-rewrite-history?utm_medium=RSS&utm_campaign=news</link>
|
||||
<guid>http://www.npr.org/blogs/parallels/2015/02/10/385197419/with-new-moves-russias-parliament-looks-to-rewrite-history?utm_medium=RSS&utm_campaign=news</guid>
|
||||
<content:encoded><![CDATA[<p>Russia's seizure of Crimea has been widely criticized. But what if Crimea was given away illegally to Ukraine back in 1954? Russian lawmakers are hard at work on their own version of history.</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=385197419">» E-Mail This</a></p>]]></content:encoded>
|
||||
<dc:creator>Corey Flintoff</dc:creator>
|
||||
</item>
|
||||
<item>
|
||||
<title>Texas Insurance Brokers Play Bigger Obamacare Role</title>
|
||||
<description>Despite an uneasy relationship to the health law, insurance brokers are touting their expertise and helping Texans sign up for Affordable Care Act insurance.</description>
|
||||
<pubDate>Tue, 10 Feb 2015 16:54:00 -0500</pubDate>
|
||||
<link>http://www.npr.org/2015/02/10/385278850/texas-insurance-brokers-play-bigger-obamacare-role?utm_medium=RSS&utm_campaign=news</link>
|
||||
<guid>http://www.npr.org/2015/02/10/385278850/texas-insurance-brokers-play-bigger-obamacare-role?utm_medium=RSS&utm_campaign=news</guid>
|
||||
<content:encoded><![CDATA[<p>Despite an uneasy relationship to the health law, insurance brokers are touting their expertise and helping Texans sign up for Affordable Care Act insurance.</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=385278850">» E-Mail This</a></p>]]></content:encoded>
|
||||
<dc:creator>Carrie Feibel</dc:creator>
|
||||
</item>
|
||||
<item>
|
||||
<title>Failing Bridges Taking A Toll; Some States Move To Raise Gas Tax </title>
|
||||
<description>With gas prices down, a growing number of states are turning to a gas tax increase. New Jersey looks at following suit to fund much-needed projects, but some drivers aren't eager to pay up.</description>
|
||||
<pubDate>Tue, 10 Feb 2015 16:54:00 -0500</pubDate>
|
||||
<link>http://www.npr.org/2015/02/10/383789378/failing-bridges-taking-a-toll-some-states-move-to-raise-gas-tax?utm_medium=RSS&utm_campaign=news</link>
|
||||
<guid>http://www.npr.org/2015/02/10/383789378/failing-bridges-taking-a-toll-some-states-move-to-raise-gas-tax?utm_medium=RSS&utm_campaign=news</guid>
|
||||
<content:encoded><![CDATA[<p>With gas prices down, a growing number of states are turning to a gas tax increase. New Jersey looks at following suit to fund much-needed projects, but some drivers aren't eager to pay up.</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=383789378">» E-Mail This</a></p>]]></content:encoded>
|
||||
<dc:creator>Joel Rose</dc:creator>
|
||||
</item>
|
||||
<item>
|
||||
<title>Family Confirms Death Of American Hostage Held By ISIS Militants</title>
|
||||
<description>The family of Kayla Mueller released a statement on Tuesday confirming her death while being held hostage by ISIS militants. Mueller's death raises questions about whether U.S. policies made it more difficult to save her.</description>
|
||||
<pubDate>Tue, 10 Feb 2015 16:40:29 -0500</pubDate>
|
||||
<link>http://www.npr.org/2015/02/10/385267258/family-confirms-death-of-american-hostage-held-by-isis-militants?utm_medium=RSS&utm_campaign=news</link>
|
||||
<guid>http://www.npr.org/2015/02/10/385267258/family-confirms-death-of-american-hostage-held-by-isis-militants?utm_medium=RSS&utm_campaign=news</guid>
|
||||
<content:encoded><![CDATA[<p>The family of Kayla Mueller released a statement on Tuesday confirming her death while being held hostage by ISIS militants. Mueller's death raises questions about whether U.S. policies made it more difficult to save her.</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=385267258">» E-Mail This</a></p>]]></content:encoded>
|
||||
<dc:creator>Martin Kaste</dc:creator>
|
||||
</item>
|
||||
<item>
|
||||
<title>Tech May Get In The Way Of Good Culture Shock While Studying Abroad</title>
|
||||
<description>A record number of Americans are studying abroad. Educators say that's good, as it promotes better cross-cultural understanding. But many in the field worry the influx of technology and social media may be hampering students' ability to fully immerse themselves abroad.</description>
|
||||
<pubDate>Tue, 10 Feb 2015 16:40:00 -0500</pubDate>
|
||||
<link>http://www.npr.org/2015/02/10/385267279/tech-may-get-in-the-way-of-good-culture-shock-while-studying-abroad?utm_medium=RSS&utm_campaign=news</link>
|
||||
<guid>http://www.npr.org/2015/02/10/385267279/tech-may-get-in-the-way-of-good-culture-shock-while-studying-abroad?utm_medium=RSS&utm_campaign=news</guid>
|
||||
<content:encoded><![CDATA[<p>A record number of Americans are studying abroad. Educators say that's good, as it promotes better cross-cultural understanding. But many in the field worry the influx of technology and social media may be hampering students' ability to fully immerse themselves abroad.</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=385267279">» E-Mail This</a></p>]]></content:encoded>
|
||||
<dc:creator>Nina Keck</dc:creator>
|
||||
</item>
|
||||
<item>
|
||||
<title>New Government Agency Designed To Tackle Cyber Threats More Effectively</title>
|
||||
<description>The Obama administration is creating a new agency to gather and distribute intelligence on cyber threats more quickly. The agency is modeled after the National Counter Terrorism Center, created after Sept. 11 to improve information sharing across the U.S. government.</description>
|
||||
<pubDate>Tue, 10 Feb 2015 16:40:00 -0500</pubDate>
|
||||
<link>http://www.npr.org/2015/02/10/385267244/new-government-agency-designed-to-tackle-cyber-threats-more-effectively?utm_medium=RSS&utm_campaign=news</link>
|
||||
<guid>http://www.npr.org/2015/02/10/385267244/new-government-agency-designed-to-tackle-cyber-threats-more-effectively?utm_medium=RSS&utm_campaign=news</guid>
|
||||
<content:encoded><![CDATA[<p>The Obama administration is creating a new agency to gather and distribute intelligence on cyber threats more quickly. The agency is modeled after the National Counter Terrorism Center, created after Sept. 11 to improve information sharing across the U.S. government.</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=385267244">» E-Mail This</a></p>]]></content:encoded>
|
||||
<dc:creator>Tom Gjelten</dc:creator>
|
||||
</item>
|
||||
<item>
|
||||
<title>New Illinois Governor Has Unions Bristling Less Than A Month Into The Job</title>
|
||||
<description>Illinois' new Republican governor is taking a page in politics from other Midwestern states. Bruce Rauner is setting policies that have government labor unions bristling and he hasn't even been on the job for a month.</description>
|
||||
<pubDate>Tue, 10 Feb 2015 16:40:00 -0500</pubDate>
|
||||
<link>http://www.npr.org/2015/02/10/385267237/new-illinois-governor-has-unions-bristling-less-than-a-month-into-the-job?utm_medium=RSS&utm_campaign=news</link>
|
||||
<guid>http://www.npr.org/2015/02/10/385267237/new-illinois-governor-has-unions-bristling-less-than-a-month-into-the-job?utm_medium=RSS&utm_campaign=news</guid>
|
||||
<content:encoded><![CDATA[<p>Illinois' new Republican governor is taking a page in politics from other Midwestern states. Bruce Rauner is setting policies that have government labor unions bristling and he hasn't even been on the job for a month.</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=385267237">» E-Mail This</a></p>]]></content:encoded>
|
||||
<dc:creator>Tony Arnold</dc:creator>
|
||||
</item>
|
||||
</channel>
|
||||
</rss>
|
150
examples/feed_xml/npr_health.xml
Normal file
150
examples/feed_xml/npr_health.xml
Normal file
@ -0,0 +1,150 @@
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<rss xmlns:npr="http://www.npr.org/rss/" xmlns:nprml="http://api.npr.org/nprml" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
|
||||
<channel>
|
||||
<title>Science</title>
|
||||
<link>http://www.npr.org/templates/story/story.php?storyId=1007</link>
|
||||
<description>The latest health and science news. Updates on medicine, healthy living, nutrition, drugs, diet, and advances in science and technology. Subscribe to the Health & Science podcast.</description>
|
||||
<language>en</language>
|
||||
<copyright>Copyright 2015 NPR - For Personal Use Only</copyright>
|
||||
<generator>NPR API RSS Generator 0.94</generator>
|
||||
<lastBuildDate>Tue, 10 Feb 2015 17:06:00 -0500</lastBuildDate>
|
||||
<image>
|
||||
<url>http://media.npr.org/images/podcasts/primary/npr_generic_image_300.jpg?s=200</url>
|
||||
<title>Science</title>
|
||||
<link>http://www.npr.org/templates/story/story.php?storyId=1007</link>
|
||||
</image>
|
||||
<item>
|
||||
<title>California's Strawberry Feud Ends, But Who Will Breed New Berries?</title>
|
||||
<description>Strawberry farmers have dropped a lawsuit against the University of California, Davis, and the university has hired a new strawberry breeder. But the future of academic berry breeding is uncertain.</description>
|
||||
<pubDate>Tue, 10 Feb 2015 17:06:00 -0500</pubDate>
|
||||
<link>http://www.npr.org/blogs/thesalt/2015/02/10/384982148/californias-strawberry-feud-ends-but-who-will-breed-new-berries?utm_medium=RSS&utm_campaign=science</link>
|
||||
<guid>http://www.npr.org/blogs/thesalt/2015/02/10/384982148/californias-strawberry-feud-ends-but-who-will-breed-new-berries?utm_medium=RSS&utm_campaign=science</guid>
|
||||
<content:encoded><![CDATA[<p>Strawberry farmers have dropped a lawsuit against the University of California, Davis, and the university has hired a new strawberry breeder. But the future of academic berry breeding is uncertain.</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=384982148">» E-Mail This</a></p>]]></content:encoded>
|
||||
<dc:creator>Dan Charles</dc:creator>
|
||||
</item>
|
||||
<item>
|
||||
<title>Scientific Pros Weigh The Cons Of Messing With Earth's Thermostat</title>
|
||||
<description>Studying techniques for engineering our way out of climate change would be helpful — and not the same as actually trying them, says a panel convened by the National Research Council.</description>
|
||||
<pubDate>Tue, 10 Feb 2015 11:03:00 -0500</pubDate>
|
||||
<link>http://www.npr.org/blogs/thetwo-way/2015/02/10/385065816/scientific-pros-weigh-the-cons-of-messing-with-earths-thermostat?utm_medium=RSS&utm_campaign=science</link>
|
||||
<guid>http://www.npr.org/blogs/thetwo-way/2015/02/10/385065816/scientific-pros-weigh-the-cons-of-messing-with-earths-thermostat?utm_medium=RSS&utm_campaign=science</guid>
|
||||
<content:encoded><![CDATA[<p>Studying techniques for engineering our way out of climate change would be helpful — and not the same as actually trying them, says a panel convened by the National Research Council.</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=385065816">» E-Mail This</a></p>]]></content:encoded>
|
||||
<dc:creator>Nell Greenfieldboyce</dc:creator>
|
||||
</item>
|
||||
<item>
|
||||
<title>The Great Solar Panel Debate: To Lease Or To Buy? </title>
|
||||
<description>More homeowners are cutting energy costs by installing solar panels, due in part to leasing programs that require no up-front investment. Leasing means less hassle, but may also save you less money.</description>
|
||||
<pubDate>Tue, 10 Feb 2015 03:36:00 -0500</pubDate>
|
||||
<link>http://www.npr.org/2015/02/10/384958332/the-great-solar-panel-debate-to-lease-or-to-buy?utm_medium=RSS&utm_campaign=science</link>
|
||||
<guid>http://www.npr.org/2015/02/10/384958332/the-great-solar-panel-debate-to-lease-or-to-buy?utm_medium=RSS&utm_campaign=science</guid>
|
||||
<content:encoded><![CDATA[<p>More homeowners are cutting energy costs by installing solar panels, due in part to leasing programs that require no up-front investment. Leasing means less hassle, but may also save you less money.</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=384958332">» E-Mail This</a></p>]]></content:encoded>
|
||||
<dc:creator>Jeff Brady</dc:creator>
|
||||
</item>
|
||||
<item>
|
||||
<title>Shake, Rattle And Toll: Berkeley's Bells Play Sounds Of Earth</title>
|
||||
<description>In celebration of its 100th anniversary, the bells of UC Berkeley's Sather Tower were programmed to play a score composed in real time by the data from seismic shifts happening under the campus.</description>
|
||||
<pubDate>Mon, 09 Feb 2015 17:16:00 -0500</pubDate>
|
||||
<link>http://www.npr.org/blogs/alltechconsidered/2015/02/09/384941475/shake-rattle-and-toll-berkeleys-bells-play-sounds-of-earth?utm_medium=RSS&utm_campaign=science</link>
|
||||
<guid>http://www.npr.org/blogs/alltechconsidered/2015/02/09/384941475/shake-rattle-and-toll-berkeleys-bells-play-sounds-of-earth?utm_medium=RSS&utm_campaign=science</guid>
|
||||
<content:encoded><![CDATA[<p>In celebration of its 100th anniversary, the bells of UC Berkeley's Sather Tower were programmed to play a score composed in real time by the data from seismic shifts happening under the campus.</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=384941475">» E-Mail This</a></p>]]></content:encoded>
|
||||
<dc:creator>Laura Sydell</dc:creator>
|
||||
</item>
|
||||
<item>
|
||||
<title>In West Africa, Fewer New Ebola Cases But Epidemic Still Uncontained</title>
|
||||
<description>Robert Siegel speaks with Brice de le Vingne, director of operations dealing with the Ebola outbreak for Doctors without Borders.</description>
|
||||
<pubDate>Mon, 09 Feb 2015 16:55:49 -0500</pubDate>
|
||||
<link>http://www.npr.org/2015/02/09/385000759/in-west-africa-fewer-new-ebola-cases-but-epidemic-still-uncontained?utm_medium=RSS&utm_campaign=science</link>
|
||||
<guid>http://www.npr.org/2015/02/09/385000759/in-west-africa-fewer-new-ebola-cases-but-epidemic-still-uncontained?utm_medium=RSS&utm_campaign=science</guid>
|
||||
<content:encoded><![CDATA[<p>Robert Siegel speaks with Brice de le Vingne, director of operations dealing with the Ebola outbreak for Doctors without Borders.</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=385000759">» E-Mail This</a></p>]]></content:encoded>
|
||||
</item>
|
||||
<item>
|
||||
<title>Harnessing The Immune System To Fight Cancer</title>
|
||||
<description>Our immune systems constantly fight off disease — protecting us from colds, flu and infection. An experimental treatment called immunotherapy is helping patients' immune systems fight off cancer.</description>
|
||||
<pubDate>Mon, 09 Feb 2015 03:33:00 -0500</pubDate>
|
||||
<link>http://www.npr.org/blogs/health/2015/02/09/373292216/harnessing-the-immune-system-to-fight-cancer?utm_medium=RSS&utm_campaign=science</link>
|
||||
<guid>http://www.npr.org/blogs/health/2015/02/09/373292216/harnessing-the-immune-system-to-fight-cancer?utm_medium=RSS&utm_campaign=science</guid>
|
||||
<content:encoded><![CDATA[<p>Our immune systems constantly fight off disease — protecting us from colds, flu and infection. An experimental treatment called immunotherapy is helping patients' immune systems fight off cancer.</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=373292216">» E-Mail This</a></p>]]></content:encoded>
|
||||
<dc:creator>Rob Stein</dc:creator>
|
||||
</item>
|
||||
<item>
|
||||
<title>16 Years After Its Inception, 'GoreSat' Set For Launch ... Soon</title>
|
||||
<description>In 1998, then-Vice President Gore proposed the satellite, which has since been repurposed for NOAA's needs. It was set to take off Sunday, but the launch was scrubbed, and will be rescheduled.</description>
|
||||
<pubDate>Sun, 08 Feb 2015 14:59:00 -0500</pubDate>
|
||||
<link>http://www.npr.org/blogs/thetwo-way/2015/02/08/384769816/16-years-after-its-inception-goresat-set-for-launch?utm_medium=RSS&utm_campaign=science</link>
|
||||
<guid>http://www.npr.org/blogs/thetwo-way/2015/02/08/384769816/16-years-after-its-inception-goresat-set-for-launch?utm_medium=RSS&utm_campaign=science</guid>
|
||||
<content:encoded><![CDATA[<p>In 1998, then-Vice President Gore proposed the satellite, which has since been repurposed for NOAA's needs. It was set to take off Sunday, but the launch was scrubbed, and will be rescheduled.</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=384769816">» E-Mail This</a></p>]]></content:encoded>
|
||||
<dc:creator>Scott Neuman</dc:creator>
|
||||
</item>
|
||||
<item>
|
||||
<title>Medical Research And The End Of Privacy</title>
|
||||
<description>Scientists can no longer guarantee privacy for patients donating tissue and DNA for medical research. NPR's Arun Rath talks with Jennifer Couzin-Frankel of <em>Science Magazine</em>.</description>
|
||||
<pubDate>Sat, 07 Feb 2015 17:03:57 -0500</pubDate>
|
||||
<link>http://www.npr.org/2015/02/07/384589757/medical-research-and-the-end-of-privacy?utm_medium=RSS&utm_campaign=science</link>
|
||||
<guid>http://www.npr.org/2015/02/07/384589757/medical-research-and-the-end-of-privacy?utm_medium=RSS&utm_campaign=science</guid>
|
||||
<content:encoded><![CDATA[<p>Scientists can no longer guarantee privacy for patients donating tissue and DNA for medical research. NPR's Arun Rath talks with Jennifer Couzin-Frankel of <em>Science Magazine</em>.</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=384589757">» E-Mail This</a></p>]]></content:encoded>
|
||||
</item>
|
||||
<item>
|
||||
<title>Birders Predict Another Snowy Owl 'Irruption'</title>
|
||||
<description>In 2014, ornithologists documented record numbers of snowy owls wintering unusually far south. NPR's Scott Simon speaks with <em>Talkin' Birds</em> host Ray Brown about this year's numbers.</description>
|
||||
<pubDate>Sat, 07 Feb 2015 07:55:00 -0500</pubDate>
|
||||
<link>http://www.npr.org/2015/02/07/384503020/birders-predict-another-snowy-owl-irruption?utm_medium=RSS&utm_campaign=science</link>
|
||||
<guid>http://www.npr.org/2015/02/07/384503020/birders-predict-another-snowy-owl-irruption?utm_medium=RSS&utm_campaign=science</guid>
|
||||
<content:encoded><![CDATA[<p>In 2014, ornithologists documented record numbers of snowy owls wintering unusually far south. NPR's Scott Simon speaks with <em>Talkin' Birds</em> host Ray Brown about this year's numbers.</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=384503020">» E-Mail This</a></p>]]></content:encoded>
|
||||
</item>
|
||||
<item>
|
||||
<title>To Get Parents To Vaccinate Their Kids, Don't Ask. Just Tell</title>
|
||||
<description>The way a pediatrician talks with nervous parents about vaccines may determine whether the child gets immunized or not, a study suggests. Asking "What do you want to do about shots?" doesn't work.</description>
|
||||
<pubDate>Sat, 07 Feb 2015 05:34:00 -0500</pubDate>
|
||||
<link>http://www.npr.org/blogs/health/2015/02/06/384322665/to-get-parents-to-vaccinate-their-kids-dont-ask-just-tell?utm_medium=RSS&utm_campaign=science</link>
|
||||
<guid>http://www.npr.org/blogs/health/2015/02/06/384322665/to-get-parents-to-vaccinate-their-kids-dont-ask-just-tell?utm_medium=RSS&utm_campaign=science</guid>
|
||||
<content:encoded><![CDATA[<p>The way a pediatrician talks with nervous parents about vaccines may determine whether the child gets immunized or not, a study suggests. Asking "What do you want to do about shots?" doesn't work.</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=384322665">» E-Mail This</a></p>]]></content:encoded>
|
||||
<dc:creator>Patti Neighmond</dc:creator>
|
||||
</item>
|
||||
<item>
|
||||
<title>Satellite Set To Stream Daily Images Of Earth From Space</title>
|
||||
<description>In 1998, Al Gore proposed using a satellite and the Internet to let us all see the awe-inspiring view of Earth that wows space travelers. That satellite may finally launch later this year.</description>
|
||||
<pubDate>Fri, 06 Feb 2015 16:09:00 -0500</pubDate>
|
||||
<link>http://www.npr.org/2015/02/06/383618359/satellite-set-to-stream-daily-images-of-earth-from-space?utm_medium=RSS&utm_campaign=science</link>
|
||||
<guid>http://www.npr.org/2015/02/06/383618359/satellite-set-to-stream-daily-images-of-earth-from-space?utm_medium=RSS&utm_campaign=science</guid>
|
||||
<content:encoded><![CDATA[<p>In 1998, Al Gore proposed using a satellite and the Internet to let us all see the awe-inspiring view of Earth that wows space travelers. That satellite may finally launch later this year.</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=383618359">» E-Mail This</a></p>]]></content:encoded>
|
||||
<dc:creator>Joe Palca</dc:creator>
|
||||
</item>
|
||||
<item>
|
||||
<title>Being With People Like You Offers Comfort Against Death's Chill</title>
|
||||
<description>Iggy Ignatius bet that immigrants from India would long to live with other Indians in his Florida condos. He was right. Psychologists say intimations of mortality make us want to be with our own kind.</description>
|
||||
<pubDate>Fri, 06 Feb 2015 16:03:00 -0500</pubDate>
|
||||
<link>http://www.npr.org/blogs/health/2015/02/06/384043496/being-with-people-like-you-offers-comfort-against-deaths-chill?utm_medium=RSS&utm_campaign=science</link>
|
||||
<guid>http://www.npr.org/blogs/health/2015/02/06/384043496/being-with-people-like-you-offers-comfort-against-deaths-chill?utm_medium=RSS&utm_campaign=science</guid>
|
||||
<content:encoded><![CDATA[<p>Iggy Ignatius bet that immigrants from India would long to live with other Indians in his Florida condos. He was right. Psychologists say intimations of mortality make us want to be with our own kind.</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=384043496">» E-Mail This</a></p>]]></content:encoded>
|
||||
<dc:creator>Lulu Miller</dc:creator>
|
||||
</item>
|
||||
<item>
|
||||
<title>What Microbes Lurk In The Subways Of New York? Mysteries Abound</title>
|
||||
<description>Think expedition to the rain forest, but one where you'll need a MetroCard to get around. The microbial life of the New York subways turns out to be as rich, odd and confounding as the city itself.</description>
|
||||
<pubDate>Fri, 06 Feb 2015 12:22:00 -0500</pubDate>
|
||||
<link>http://www.npr.org/blogs/health/2015/02/06/384274314/what-microbes-lurk-in-the-subways-of-new-york-most-are-mysterious?utm_medium=RSS&utm_campaign=science</link>
|
||||
<guid>http://www.npr.org/blogs/health/2015/02/06/384274314/what-microbes-lurk-in-the-subways-of-new-york-most-are-mysterious?utm_medium=RSS&utm_campaign=science</guid>
|
||||
<content:encoded><![CDATA[<p>Think expedition to the rain forest, but one where you'll need a MetroCard to get around. The microbial life of the New York subways turns out to be as rich, odd and confounding as the city itself.</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=384274314">» E-Mail This</a></p>]]></content:encoded>
|
||||
<dc:creator>Nancy Shute</dc:creator>
|
||||
</item>
|
||||
<item>
|
||||
<title>Outrage Over Government's Animal Experiments Leads To USDA Review</title>
|
||||
<description>Lawmakers also introduced a bill to strengthen laws protecting farm animals used in research. Both moves come out of a <em>New York Times</em> investigation of animal suffering at a federal research center.</description>
|
||||
<pubDate>Fri, 06 Feb 2015 12:07:00 -0500</pubDate>
|
||||
<link>http://www.npr.org/blogs/thesalt/2015/02/06/384103870/outrage-over-governments-animal-experiments-leads-to-usda-review?utm_medium=RSS&utm_campaign=science</link>
|
||||
<guid>http://www.npr.org/blogs/thesalt/2015/02/06/384103870/outrage-over-governments-animal-experiments-leads-to-usda-review?utm_medium=RSS&utm_campaign=science</guid>
|
||||
<content:encoded><![CDATA[<p>Lawmakers also introduced a bill to strengthen laws protecting farm animals used in research. Both moves come out of a <em>New York Times</em> investigation of animal suffering at a federal research center.</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=384103870">» E-Mail This</a></p>]]></content:encoded>
|
||||
<dc:creator>Allison Aubrey</dc:creator>
|
||||
</item>
|
||||
<item>
|
||||
<title>What Did Cavemen Think About Lust?</title>
|
||||
<description>Christopher Ryan says that human beings are sexual omnivores and hopes that a better understanding of sexual fidelity may end discrimination, shame and unrealistic expectations.</description>
|
||||
<pubDate>Fri, 06 Feb 2015 08:44:00 -0500</pubDate>
|
||||
<link>http://www.npr.org/2015/02/06/378567856/what-did-cavemen-think-about-lust?utm_medium=RSS&utm_campaign=science</link>
|
||||
<guid>http://www.npr.org/2015/02/06/378567856/what-did-cavemen-think-about-lust?utm_medium=RSS&utm_campaign=science</guid>
|
||||
<content:encoded><![CDATA[<p>Christopher Ryan says that human beings are sexual omnivores and hopes that a better understanding of sexual fidelity may end discrimination, shame and unrealistic expectations.</p><p><a href="http://www.npr.org/templates/email/emailAFriend.php?storyId=378567856">» E-Mail This</a></p>]]></content:encoded>
|
||||
<dc:creator>NPR/TED Staff</dc:creator>
|
||||
</item>
|
||||
</channel>
|
||||
</rss>
|
@ -1,8 +1,10 @@
|
||||
var RssBraider = require('../index'),
|
||||
feeds = {};
|
||||
feeds.filefeed = require("./config/feed_with_plugins").feed;
|
||||
feed_obj = {};
|
||||
|
||||
feed_obj.filefeed = require("./config/feed_with_plugins").feed;
|
||||
|
||||
var braider_options = {
|
||||
feeds : feeds,
|
||||
feeds : feed_obj,
|
||||
indent : " "
|
||||
};
|
||||
var rss_braider = RssBraider.createClient(braider_options);
|
||||
|
@ -1,9 +1,11 @@
|
||||
var RssBraider = require('../index'),
|
||||
feeds = {};
|
||||
feeds.filefeed = require("./config/feed").feed;
|
||||
feed_obj = {};
|
||||
|
||||
feed_obj.filefeed = require("./config/feed").feed;
|
||||
var braider_options = {
|
||||
feeds : feeds,
|
||||
indent : " "
|
||||
feeds : feed_obj,
|
||||
indent : " ",
|
||||
date_sort_order : "desc" // Newest first
|
||||
};
|
||||
var rss_braider = RssBraider.createClient(braider_options);
|
||||
|
||||
|
@ -1,8 +1,12 @@
|
||||
// Put the description into content:encoded block
|
||||
// Ex:
|
||||
// <content:encoded>
|
||||
// <![CDATA[<p>Stewart let the news slip during a taping of his show today.]]>
|
||||
// </content:encoded>
|
||||
module.exports = function (item, itemOptions) {
|
||||
if (!item || !itemOptions) {
|
||||
return;
|
||||
}
|
||||
// content:encoded (i.e. description)
|
||||
if (item["content:encoded"] && item["content:encoded"]["#"]){
|
||||
var content_encoded = item["content:encoded"]["#"];
|
||||
itemOptions.custom_elements.push(
|
||||
|
Loading…
Reference in New Issue
Block a user