{ "metadata": { "name": "", "signature": "sha256:546e8ad6fedc87a21622bf3392d8bc9a576e1c537695645253395f6faec21f7f" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "Renee's First IPython Notebook and First API Usage \"In the Wild\" (outside of a course)" ] }, { "cell_type": "heading", "level": 3, "metadata": {}, "source": [ "Import the \"requests\" library and set up the parameters to pass in the request. We're going to create a list of the 10 most recent stories matching the search term \"data science\"." ] }, { "cell_type": "code", "collapsed": false, "input": [ "import requests \n", "#key-value pairs of parameters\n", "p = {'searchTerm':'\"data science\"','numResults':'10'}\n", "r = requests.get(\"http://api.npr.org/query?apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\", params=p)\n", "#view the generated url with the parameters in the querystring (it's clickable to see the xml) and the \n", "#response status and content-type\n", "print(r.url + '\\nstatus:' + str(r.status_code) + '\\ncontent-type:' + r.headers['content-type'])\n" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "http://api.npr.org/query?apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001&searchTerm=%22data+science%22&numResults=10\n", "status:200\n", "content-type:text/xml;charset=UTF-8\n" ] } ], "prompt_number": 2 }, { "cell_type": "heading", "level": 3, "metadata": {}, "source": [ "Parse the XML tree and loop through it." ] }, { "cell_type": "code", "collapsed": true, "input": [ "import lxml.etree as etree\n", "#parse the response xml\n", "tree = etree.XML(r.content)\n", "\n", "#iterate through the entire tree and display each item's tag and text\n", "for item in tree:\n", " #separate the stories\n", " if item.tag == 'story':\n", " print('\\n---------------------------------------------------------')\n", " #print everything under the story tag but the paragraphs and fullText (to save space)\n", " for subitems in item.iter(\"*\"):\n", " if subitems.tag != 'paragraph' and subitems.tag != 'fullText':\n", " print(subitems.tag + ': ' + str(subitems.text))\n", " \n", " " ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "list: \n", " \n", "title: NPR: Stories from NPR\n", "teaser: Assorted stories from NPR\n", "miniTeaser: Custom NPR News Feed API. Visit http://www.npr.org/templates/apidoc/index.php for more information.\n", "link: http://api.npr.org/query?searchTerm=%22data%20science%22&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "story: \n", " \n", "link: http://www.npr.org/sections/13.7/2015/03/24/395012901/what-if-web-search-results-were-based-on-accuracy?ft=nprml&f=\n", "link: http://api.npr.org/query?id=395012901&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "link: http://n.pr/1BKkKLc\n", "title: What If Web Search Results Were Based On Accuracy?\n", "subtitle: None\n", "shortTitle: None\n", "teaser: Google has been researching the possibility of ranking search results based on established facts. Were this to become the norm, it would have huge implications for future discourse, says Adam Frank.\n", "miniTeaser: None\n", "slug: 13.7: Cosmos And Culture\n", "thumbnail: \n", " \n", "medium: http://media.npr.org/assets/img/2015/03/24/google_sq-6994360b215eb7bb08fafa418c6e742a90f1a600.jpg?s=13\n", "large: http://media.npr.org/assets/img/2015/03/24/google_sq-6994360b215eb7bb08fafa418c6e742a90f1a600.jpg?s=11\n", "provider: iStockphoto\n", "storyDate: Tue, 24 Mar 2015 07:55:00 -0400\n", "pubDate: Tue, 24 Mar 2015 13:24:00 -0400\n", "lastModifiedDate: Tue, 31 Mar 2015 04:07:20 -0400\n", "audioRunByDate: None\n", "keywords: None\n", "priorityKeywords: None\n", "organization: \n", " \n", "name: NPR\n", "website: http://www.npr.org/\n", "parent: \n", " \n", "title: Commentary\n", "link: http://www.npr.org/sections/commentary/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1060&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: civil society\n", "link: http://www.npr.org/tags/395014619/civil-society?ft=nprml&f=\n", "link: http://api.npr.org/query?id=395014619&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: accuracy\n", "link: http://www.npr.org/tags/395014606/accuracy?ft=nprml&f=\n", "link: http://api.npr.org/query?id=395014606&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: web search\n", "link: http://www.npr.org/tags/395014604/web-search?ft=nprml&f=\n", "link: http://api.npr.org/query?id=395014604&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: facts\n", "link: http://www.npr.org/tags/395014602/facts?ft=nprml&f=\n", "link: http://api.npr.org/query?id=395014602&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Culture\n", "link: http://www.npr.org/sections/13.7/126355748/culture/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=126355748&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Google\n", "link: http://www.npr.org/tags/125099562/google?ft=nprml&f=\n", "link: http://api.npr.org/query?id=125099562&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: 13.7: Cosmos And Culture\n", "link: http://www.npr.org/sections/13.7/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=114424647&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Commentary\n", "link: http://www.npr.org/sections/commentary/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1060&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Digital Life\n", "link: http://www.npr.org/sections/digital-life/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1049&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Technology\n", "link: http://www.npr.org/sections/technology/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1019&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Business\n", "link: http://www.npr.org/sections/business/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1006&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Home Page Top Stories\n", "link: http://www.npr.org/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1002&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "byline: \n", " \n", "name: Adam Frank\n", "link: http://www.npr.org/people/336050847/adam-frank?ft=nprml&f=\n", "link: http://api.npr.org/query?id=336050847&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "image: \n", " \n", "title: Google search page.\n", "caption: None\n", "link: None\n", "producer: Matjaz Boncina\n", "provider: iStockphoto\n", "copyright: None\n", "enlargement: \n", " \n", "caption: None\n", "crop: None\n", "crop: None\n", "crop: None\n", "crop: None\n", "text: \n", " \n", "textWithHtml: \n", " \n", "story: \n", " \n", "link: http://www.npr.org/sections/alltechconsidered/2015/03/23/394827451/now-algorithms-are-deciding-whom-to-hire-based-on-voice?ft=nprml&f=\n", "link: http://api.npr.org/query?id=394827451&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "link: http://n.pr/18T09hi\n", "title: Now Algorithms Are Deciding Whom To Hire, Based On Voice\n", "subtitle: None\n", "shortTitle: None\n", "teaser: If you're trying out for a job, the one judging you may not be a person \u2014 it could be a computer. Algorithms are evaluating human voices to determine which ones are engaging, calming and trustworthy.\n", "miniTeaser: None\n", "slug: All Tech Considered\n", "thumbnail: \n", " \n", "medium: http://media.npr.org/assets/img/2015/03/23/gettyimages-106683221edit_sq-3f2aa467193d4740564c3d4e9b1041d9bbb134e6.jpg?s=13\n", "large: http://media.npr.org/assets/img/2015/03/23/gettyimages-106683221edit_sq-3f2aa467193d4740564c3d4e9b1041d9bbb134e6.jpg?s=11\n", "provider: Ikon Images/Getty Images\n", "storyDate: Mon, 23 Mar 2015 16:40:00 -0400\n", "pubDate: Wed, 27 May 2015 08:58:00 -0400\n", "lastModifiedDate: Wed, 27 May 2015 08:58:41 -0400\n", "audioRunByDate: Sat, 28 Mar 2015 01:00:00 -0400\n", "show: \n", " \n", "program: All Things Considered\n", "showDate: Mon, 23 Mar 2015 16:00:00 -0400\n", "segNum: 9\n", "keywords: None\n", "priorityKeywords: None\n", "organization: \n", " \n", "name: NPR\n", "website: http://www.npr.org/\n", "transcript: \n", " \n", "link: http://api.npr.org/transcript?id=394827451&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Technology\n", "link: http://www.npr.org/sections/technology/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1019&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: All Things Considered for March 23, 2015\n", "link: http://www.npr.org/programs/all-things-considered/2015/03/23/394807955?ft=nprml&f=\n", "link: http://api.npr.org/query?id=394807955&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: All Tech Considered Featured Post Two\n", "link: http://www.npr.org/series/241677706/all-tech-considered-featured-post-two?ft=nprml&f=\n", "link: http://api.npr.org/query?id=241677706&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Science\n", "link: http://www.npr.org/sections/alltechconsidered/211399851/science?ft=nprml&f=\n", "link: http://api.npr.org/query?id=211399851&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Innovation\n", "link: http://www.npr.org/sections/alltechconsidered/195149875/innovation?ft=nprml&f=\n", "link: http://api.npr.org/query?id=195149875&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: algorithms\n", "link: http://www.npr.org/tags/177072836/algorithms?ft=nprml&f=\n", "link: http://api.npr.org/query?id=177072836&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: speaking\n", "link: http://www.npr.org/tags/135546516/speaking?ft=nprml&f=\n", "link: http://api.npr.org/query?id=135546516&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Jobs\n", "link: http://www.npr.org/tags/131777176/jobs?ft=nprml&f=\n", "link: http://api.npr.org/query?id=131777176&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: All Tech Considered\n", "link: http://www.npr.org/sections/alltechconsidered/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=102920358&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Story of the Day\n", "link: http://www.npr.org/sections/story-of-the-day/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1090&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Digital Life\n", "link: http://www.npr.org/sections/digital-life/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1049&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Technology\n", "link: http://www.npr.org/sections/technology/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1019&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Business\n", "link: http://www.npr.org/sections/business/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1006&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Home Page Top Stories\n", "link: http://www.npr.org/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1002&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: News\n", "link: http://www.npr.org/sections/news/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1001&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: All Things Considered\n", "link: http://www.npr.org/programs/all-things-considered/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=2&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "audio: \n", " \n", "title: None\n", "duration: 267\n", "description: None\n", "format: \n", " \n", "mp3: http://api.npr.org/m3u/1394906629-e8c9fa.m3u?orgId=1&topicId=1019&d=267&p=2&story=394827451&t=progseg&e=394807955&seg=9&ft=nprml&f=\n", "wm: http://www.npr.org/templates/dmg/dmg_wmref_em.php?id=394906629&type=1&mtype=WM&orgId=1&topicId=1019&d=267&p=2&story=394827451&t=progseg&e=394807955&seg=9&ft=nprml&f=\n", "mp4: http://pd.npr.org/npr-mp4/npr/atc/2015/03/20150323_atc_now_algorithms_are_deciding_whom_to_hire_based_on_voice.mp4?orgId=1&topicId=1019&d=267&p=2&story=394827451&t=progseg&e=394807955&seg=9&ft=nprml&f=\n", "mediastream: rtmp://flash.npr.org/ondemand/mp3:anon.npr-mp3/npr/atc/2015/03/20150323_atc_now_algorithms_are_deciding_whom_to_hire_based_on_voice.mp3\n", "region: all\n", "rightsHolder: None\n", "permissions: \n", " \n", "download: None\n", "stream: None\n", "embed: None\n", "stream: None\n", "byline: \n", " \n", "name: Aarti Shahani\n", "link: http://www.npr.org/people/348730771/aarti-shahani?ft=nprml&f=\n", "link: http://api.npr.org/query?id=348730771&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "container: \n", " \n", "title: None\n", "introText: None\n", "colSpan: 1\n", "displayOptions: Display Both\n", "link: None\n", "link: None\n", "image: \n", " \n", "title: People talking together\n", "caption: None\n", "link: None\n", "producer: Ilana Kohn\n", "provider: Ikon Images/Getty Images\n", "copyright: None\n", "enlargement: \n", " \n", "caption: None\n", "crop: None\n", "crop: None\n", "crop: None\n", "crop: None\n", "crop: None\n", "relatedLink: \n", " \n", "caption: Recruiting Better Talent With Brain Games And Big Data\n", "link: http://www.npr.org/sections/alltechconsidered/2015/02/25/388698620/recruiting-better-talent-with-brain-games-and-big-data?ft=nprml&f=\n", "link: http://api.npr.org/query?id=388698620&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "relatedLink: \n", " \n", "caption: Can't Ask That? Some Job Interviewers Go To Social Media Instead\n", "link: http://www.npr.org/sections/alltechconsidered/2014/04/11/301791749/cant-ask-that-some-job-interviewers-go-to-social-media-instead?ft=nprml&f=\n", "link: http://api.npr.org/query?id=301791749&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "relatedLink: \n", " \n", "caption: Got A Voice For Radio? The Algorithm Speaks\n", "link: http://www.npr.org/sections/alltechconsidered/2015/05/26/409746236/got-a-voice-for-radio-the-algorithm-speaks?ft=nprml&f=\n", "link: http://api.npr.org/query?id=409746236&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "text: \n", " \n", "textWithHtml: \n", " \n", "externalAsset: \n", " \n", "url: http://www.youtube.com/watch?v=WO4tIrjBDkk\n", "oEmbed: http://www.youtube.com/oembed?url=http%3A//www.youtube.com/watch%3Fv%3DWO4tIrjBDkk\n", "externalId: WO4tIrjBDkk\n", "credit: None\n", "parameters: None\n", "caption: None\n", "story: \n", " \n", "link: http://www.npr.org/sections/alltechconsidered/2014/11/28/367046864/a-data-analysts-blog-is-transforming-how-new-yorkers-see-their-city?ft=nprml&f=\n", "link: http://api.npr.org/query?id=367046864&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "link: http://n.pr/1rzV7cw\n", "title: A Data Analyst's Blog Is Transforming How New Yorkers See Their City\n", "subtitle: None\n", "shortTitle: None\n", "teaser: Ben Wellington tracked down two of the city's costliest parking spots and its leafiest neighborhoods, while pointing out questionable health grades for restaurants and odd charges for subway riders.\n", "miniTeaser: None\n", "slug: All Tech Considered\n", "thumbnail: \n", " \n", "medium: http://media.npr.org/assets/img/2014/11/27/nycdata_ozy_2_sq-be521042e99495223668bd03066c62b13c25deaa.jpg?s=13\n", "large: http://media.npr.org/assets/img/2014/11/27/nycdata_ozy_2_sq-be521042e99495223668bd03066c62b13c25deaa.jpg?s=11\n", "provider: OZY\n", "storyDate: Fri, 28 Nov 2014 08:03:00 -0500\n", "pubDate: Mon, 01 Dec 2014 12:51:00 -0500\n", "lastModifiedDate: Mon, 01 Dec 2014 12:51:19 -0500\n", "audioRunByDate: None\n", "keywords: None\n", "priorityKeywords: None\n", "organization: \n", " \n", "name: Ozy.com\n", "website: http://www.ozy.com/\n", "parent: \n", " \n", "title: Technology\n", "link: http://www.npr.org/sections/technology/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1019&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Innovation\n", "link: http://www.npr.org/sections/alltechconsidered/195149875/innovation?ft=nprml&f=\n", "link: http://api.npr.org/query?id=195149875&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Big Data\n", "link: http://www.npr.org/tags/161337202/big-data?ft=nprml&f=\n", "link: http://api.npr.org/query?id=161337202&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: New York City\n", "link: http://www.npr.org/tags/126926055/new-york-city?ft=nprml&f=\n", "link: http://api.npr.org/query?id=126926055&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: All Tech Considered\n", "link: http://www.npr.org/sections/alltechconsidered/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=102920358&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Around the Nation\n", "link: http://www.npr.org/sections/around-the-nation/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1091&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Technology\n", "link: http://www.npr.org/sections/technology/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1019&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Home Page Top Stories\n", "link: http://www.npr.org/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1002&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "byline: \n", " \n", "name: Farah Halime\n", "image: \n", " \n", "title: New York data blogger Ben Wellington sits next to a fire hydrant Sunday in Brooklyn, N.Y. His investigation into the city's parking ticket data found that two Lower Manhattan hydrants on consecutive blocks in Manhattan generated $55,000 a year for the city \u2014 off of cars that appeared to be parked legally.\n", "caption: New York data blogger Ben Wellington sits next to a fire hydrant Sunday in Brooklyn, N.Y. His investigation into the city's parking ticket data found that two Lower Manhattan hydrants on consecutive blocks in Manhattan generated $55,000 a year for the city \u2014 off of cars that appeared to be parked legally.\n", "link: None\n", "producer: RIchard Villa\n", "provider: OZY\n", "copyright: None\n", "enlargement: \n", " \n", "caption: None\n", "crop: None\n", "crop: None\n", "crop: None\n", "crop: None\n", "image: \n", " \n", "title: Wellington stands in front of a Volkswagen bus Sunday in Brooklyn, N.Y.\n", "caption: Wellington stands in front of a Volkswagen bus Sunday in Brooklyn, N.Y.\n", "link: None\n", "producer: RIchard Villa \n", "provider: OZY\n", "copyright: None\n", "enlargement: \n", " \n", "caption: None\n", "crop: None\n", "crop: None\n", "crop: None\n", "crop: None\n", "relatedLink: \n", " \n", "caption: When Cities Become Science, Where Does Art Fit In?\n", "link: http://www.npr.org/sections/13.7/2014/07/26/334038347/when-cities-become-science-where-does-art-fit-in?ft=nprml&f=\n", "link: http://api.npr.org/query?id=334038347&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "relatedLink: \n", " \n", "caption: What Big Data Means For Big Cities\n", "link: http://www.npr.org/sections/13.7/2013/05/31/187056297/what-big-data-means-for-big-cities?ft=nprml&f=\n", "link: http://api.npr.org/query?id=187056297&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "text: \n", " \n", "textWithHtml: \n", " \n", "story: \n", " \n", "link: http://www.npr.org/2014/10/27/359233263/parties-compete-to-build-the-best-voter-turnout-machine?ft=nprml&f=\n", "link: http://api.npr.org/query?id=359233263&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "link: http://n.pr/1v2Y465\n", "title: Parties Compete To Build The Best Voter-Turnout Machine\n", "subtitle: None\n", "shortTitle: None\n", "teaser: A week ahead of Election Day, both parties are still scrambling to identify and turn out every one of their voters. These get-out-the-vote operations are as expensive and high-tech as every other bit of modern campaigning.\n", "miniTeaser: None\n", "slug: Politics\n", "storyDate: Mon, 27 Oct 2014 04:36:00 -0400\n", "pubDate: Mon, 27 Oct 2014 07:32:00 -0400\n", "lastModifiedDate: Mon, 27 Oct 2014 06:27:22 -0400\n", "audioRunByDate: Wed, 29 Oct 2014 01:00:00 -0400\n", "show: \n", " \n", "program: Morning Edition\n", "showDate: Mon, 27 Oct 2014 05:00:00 -0400\n", "segNum: 1\n", "keywords: None\n", "priorityKeywords: None\n", "organization: \n", " \n", "name: NPR\n", "website: http://www.npr.org/\n", "transcript: \n", " \n", "link: http://api.npr.org/transcript?id=359233263&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Morning Edition for October 27, 2014\n", "link: http://www.npr.org/programs/morning-edition/2014/10/27/359233262/morning-edition-for-october-27-2014?ft=nprml&f=\n", "link: http://api.npr.org/query?id=359233262&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Politics\n", "link: http://www.npr.org/sections/politics/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1014&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Politics\n", "link: http://www.npr.org/sections/politics/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1014&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: U.S.\n", "link: http://www.npr.org/sections/us/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1003&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Morning Edition\n", "link: http://www.npr.org/programs/morning-edition/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=3&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "audio: \n", " \n", "title: None\n", "duration: 432\n", "description: None\n", "format: \n", " \n", "mp3: http://api.npr.org/m3u/1359233264-106fb3.m3u?orgId=1&topicId=1014&d=432&p=3&story=359233263&t=progseg&e=359233262&seg=1&ft=nprml&f=\n", "wm: http://www.npr.org/templates/dmg/dmg_wmref_em.php?id=359233264&type=1&mtype=WM&orgId=1&topicId=1014&d=432&p=3&story=359233263&t=progseg&e=359233262&seg=1&ft=nprml&f=\n", "mp4: http://pd.npr.org/npr-mp4/npr/me/2014/10/20141027_me_parties_compete_to_build_the_best_voter-turnout_machine.mp4?orgId=1&topicId=1014&d=432&p=3&story=359233263&t=progseg&e=359233262&seg=1&ft=nprml&f=\n", "mediastream: rtmp://flash.npr.org/ondemand/mp3:anon.npr-mp3/npr/me/2014/10/20141027_me_parties_compete_to_build_the_best_voter-turnout_machine.mp3\n", "region: all\n", "rightsHolder: None\n", "permissions: \n", " \n", "download: None\n", "stream: None\n", "embed: None\n", "stream: None\n", "byline: \n", " \n", "name: Mara Liasson\n", "link: http://www.npr.org/people/1930401/mara-liasson?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1930401&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "text: \n", " \n", "textWithHtml: \n", " \n", "story: \n", " \n", "link: http://www.npr.org/2014/09/20/350155825/in-san-diego-a-bootcamp-for-data-junkies?ft=nprml&f=\n", "link: http://api.npr.org/query?id=350155825&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "link: http://n.pr/1wAA3pE\n", "title: In San Diego, A Boot Camp For Data Junkies\n", "subtitle: None\n", "shortTitle: None\n", "teaser: Natasha Balac runs a two-day boot camp out of the San Diego Supercomputer Center for people from all types of industries to learn the tools and algorithms to help them analyze data and spot patterns.\n", "miniTeaser: None\n", "slug: Technology\n", "storyDate: Sat, 20 Sep 2014 16:55:00 -0400\n", "pubDate: Mon, 22 Sep 2014 10:23:00 -0400\n", "lastModifiedDate: Mon, 22 Sep 2014 10:23:24 -0400\n", "audioRunByDate: Sat, 27 Sep 2014 01:00:00 -0400\n", "show: \n", " \n", "program: All Things Considered\n", "showDate: Sat, 20 Sep 2014 16:00:00 -0400\n", "segNum: 7\n", "keywords: None\n", "priorityKeywords: None\n", "organization: \n", " \n", "name: NPR\n", "website: http://www.npr.org/\n", "transcript: \n", " \n", "link: http://api.npr.org/transcript?id=350155825&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: All Things Considered for September 20, 2014\n", "link: http://www.npr.org/programs/all-things-considered/2014/09/20/350108710?ft=nprml&f=\n", "link: http://api.npr.org/query?id=350108710&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Technology\n", "link: http://www.npr.org/sections/technology/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1019&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Technology\n", "link: http://www.npr.org/sections/technology/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1019&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Business\n", "link: http://www.npr.org/sections/business/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1006&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: All Things Considered\n", "link: http://www.npr.org/programs/all-things-considered/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=2&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "audio: \n", " \n", "title: None\n", "duration: 247\n", "description: None\n", "format: \n", " \n", "mp3: http://api.npr.org/m3u/1350155828-c6e491.m3u?orgId=1&topicId=1019&d=247&p=2&story=350155825&t=progseg&e=350108710&seg=7&ft=nprml&f=\n", "wm: http://www.npr.org/templates/dmg/dmg_wmref_em.php?id=350155828&type=1&mtype=WM&orgId=1&topicId=1019&d=247&p=2&story=350155825&t=progseg&e=350108710&seg=7&ft=nprml&f=\n", "mp4: http://pd.npr.org/npr-mp4/npr/atc/2014/09/20140920_atc_in_san_diego_a_bootcamp_for_data_junkies.mp4?orgId=1&topicId=1019&d=247&p=2&story=350155825&t=progseg&e=350108710&seg=7&ft=nprml&f=\n", "mediastream: rtmp://flash.npr.org/ondemand/mp3:anon.npr-mp3/npr/atc/2014/09/20140920_atc_in_san_diego_a_bootcamp_for_data_junkies.mp3\n", "region: all\n", "rightsHolder: None\n", "permissions: \n", " \n", "download: None\n", "stream: None\n", "embed: None\n", "stream: None\n", "text: \n", " \n", "textWithHtml: \n", " \n", "story: \n", " \n", "link: http://www.npr.org/2014/07/04/328373960/facebook-apologizes-for-manipulation-data-research-likely-to-go-on?ft=nprml&f=\n", "link: http://api.npr.org/query?id=328373960&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "link: http://n.pr/1vEzkSp\n", "title: Facebook Apologizes For Manipulation; Data Research Likely To Go On\n", "subtitle: None\n", "shortTitle: None\n", "teaser: A mood study that Facebook conducted on unwitting users has been criticized. Data science plays an integral role at Facebook \u2014 for bottom line reasons, and in collaboration with academic researchers.\n", "miniTeaser: None\n", "slug: Business\n", "storyDate: Fri, 04 Jul 2014 05:05:00 -0400\n", "pubDate: Fri, 04 Jul 2014 07:52:00 -0400\n", "lastModifiedDate: Fri, 04 Jul 2014 05:07:28 -0400\n", "audioRunByDate: None\n", "show: \n", " \n", "program: Morning Edition\n", "showDate: Fri, 04 Jul 2014 05:00:00 -0400\n", "segNum: 4\n", "keywords: None\n", "priorityKeywords: None\n", "organization: \n", " \n", "name: NPR\n", "website: http://www.npr.org/\n", "transcript: \n", " \n", "link: http://api.npr.org/transcript?id=328373960&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Morning Edition for July 4, 2014\n", "link: http://www.npr.org/programs/morning-edition/2014/07/04/328373945/morning-edition-for-july-4-2014?ft=nprml&f=\n", "link: http://api.npr.org/query?id=328373945&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Research News\n", "link: http://www.npr.org/sections/research-news/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1024&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Business\n", "link: http://www.npr.org/sections/business/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1006&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Business\n", "link: http://www.npr.org/sections/business/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1006&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Morning Edition\n", "link: http://www.npr.org/programs/morning-edition/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=3&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "audio: \n", " \n", "title: None\n", "duration: 112\n", "description: None\n", "format: \n", " \n", "mp3: http://api.npr.org/m3u/1328373961-eb7891.m3u?orgId=1&topicId=1006&d=112&p=3&story=328373960&t=progseg&e=328373945&seg=4&ft=nprml&f=\n", "wm: http://www.npr.org/templates/dmg/dmg_wmref_em.php?id=328373961&type=1&mtype=WM&orgId=1&topicId=1006&d=112&p=3&story=328373960&t=progseg&e=328373945&seg=4&ft=nprml&f=\n", "mp4: http://pd.npr.org/npr-mp4/npr/me/2014/07/20140704_me_facebook_apologizes_for_manipulation_data_research_likely_to_go_on.mp4?orgId=1&topicId=1006&d=112&p=3&story=328373960&t=progseg&e=328373945&seg=4&ft=nprml&f=\n", "mediastream: rtmp://flash.npr.org/ondemand/mp3:anon.npr-mp3/npr/me/2014/07/20140704_me_facebook_apologizes_for_manipulation_data_research_likely_to_go_on.mp3\n", "region: all\n", "rightsHolder: None\n", "permissions: \n", " \n", "download: None\n", "stream: None\n", "embed: None\n", "stream: None\n", "byline: \n", " \n", "name: Aarti Shahani\n", "link: http://www.npr.org/people/348730771/aarti-shahani?ft=nprml&f=\n", "link: http://api.npr.org/query?id=348730771&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "text: \n", " \n", "textWithHtml: \n", " \n", "story: \n", " \n", "link: http://www.npr.org/2013/09/17/223356184/the-occupy-movement-at-two-many-voices-many-messages?ft=nprml&f=\n", "link: http://api.npr.org/query?id=223356184&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "link: http://n.pr/16gWKRy\n", "title: The Occupy Movement At 2: Many Voices, Many Messages\n", "subtitle: None\n", "shortTitle: None\n", "teaser: Demonstrators packed lower Manhattan on Tuesday, two years after the launch of the Occupy Wall Street movement. While Occupy's prominence has faded since becoming a household name in 2011, its supporters say the group's concerns have helped prompt a national conversation about income inequality.\n", "miniTeaser: It's no longer a household name, but Occupy says it put income inequality on America's front burner.\n", "slug: U.S.\n", "thumbnail: \n", " \n", "medium: http://media.npr.org/assets/img/2013/09/17/180884256_sq-956764e94ecfa2b3515c28b6a34ed58e61533458.jpg?s=13\n", "large: http://media.npr.org/assets/img/2013/09/17/180884256_sq-956764e94ecfa2b3515c28b6a34ed58e61533458.jpg?s=11\n", "provider: Getty Images\n", "storyDate: Tue, 17 Sep 2013 17:10:00 -0400\n", "pubDate: Tue, 17 Sep 2013 18:31:00 -0400\n", "lastModifiedDate: Tue, 17 Sep 2013 18:31:24 -0400\n", "audioRunByDate: None\n", "show: \n", " \n", "program: All Things Considered\n", "showDate: Tue, 17 Sep 2013 15:00:00 -0400\n", "segNum: 8\n", "keywords: None\n", "priorityKeywords: None\n", "organization: \n", " \n", "name: NPR\n", "website: http://www.npr.org/\n", "transcript: \n", " \n", "link: http://api.npr.org/transcript?id=223356184&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: All Things Considered for September 17, 2013\n", "link: http://www.npr.org/programs/all-things-considered/2013/09/17/223381920/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=223381920&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Around the Nation\n", "link: http://www.npr.org/sections/around-the-nation/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1091&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Economy\n", "link: http://www.npr.org/sections/economy/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1017&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: U.S.\n", "link: http://www.npr.org/sections/us/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1003&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: U.S.\n", "link: http://www.npr.org/sections/us/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1003&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Home Page Top Stories\n", "link: http://www.npr.org/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1002&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: News\n", "link: http://www.npr.org/sections/news/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1001&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: All Things Considered\n", "link: http://www.npr.org/programs/all-things-considered/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=2&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "audio: \n", " \n", "title: None\n", "duration: 238\n", "description: None\n", "format: \n", " \n", "mp3: http://api.npr.org/m3u/1223472694-83d6af.m3u?orgId=1&topicId=1003&d=238&p=2&story=223356184&t=progseg&e=223381920&seg=8&ft=nprml&f=\n", "wm: http://www.npr.org/templates/dmg/dmg_wmref_em.php?id=223472694&type=1&mtype=WM&orgId=1&topicId=1003&d=238&p=2&story=223356184&t=progseg&e=223381920&seg=8&ft=nprml&f=\n", "mp4: http://pd.npr.org/npr-mp4/npr/atc/2013/09/20130917_atc_08.mp4?orgId=1&topicId=1003&d=238&p=2&story=223356184&t=progseg&e=223381920&seg=8&ft=nprml&f=\n", "mediastream: rtmp://flash.npr.org/ondemand/mp3:anon.npr-mp3/npr/atc/2013/09/20130917_atc_08.mp3\n", "region: all\n", "rightsHolder: None\n", "permissions: \n", " \n", "download: None\n", "stream: None\n", "embed: None\n", "stream: None\n", "byline: \n", " \n", "name: Margot Adler\n", "link: http://api.npr.org/query?id=2100166&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "container: \n", " \n", "title: Related NPR Stories\n", "introText: None\n", "colSpan: 1\n", "displayOptions: Display Both\n", "link: None\n", "link: None\n", "link: None\n", "image: \n", " \n", "title: Demonstrators congregate near the New York Stock Exchange on Tuesday. Numerous rallies and events were planned to mark the second anniversary of the Occupy Wall Street movement, which targets income inequality and financial greed.\n", "caption: Demonstrators congregate near the New York Stock Exchange on Tuesday. Numerous rallies and events were planned to mark the second anniversary of the Occupy Wall Street movement, which targets income inequality and financial greed.\n", "link: None\n", "producer: Spencer Platt\n", "provider: Getty Images\n", "copyright: None\n", "enlargement: \n", " \n", "caption: None\n", "crop: None\n", "crop: None\n", "crop: None\n", "crop: None\n", "crop: None\n", "relatedLink: \n", " \n", "caption: Report Finds 'Widespread Human Rights Violations' In Policing Of Occupy Protests\n", "link: http://www.npr.org/sections/thetwo-way/2012/07/25/157369699/reports-finds-widespread-human-rights-violations-in-policing-of-occupy-protests?ft=nprml&f=\n", "link: http://api.npr.org/query?id=157369699&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "relatedLink: \n", " \n", "caption: The 'Second Disaster': Making Well-Intentioned Donations Useful\n", "link: http://www.npr.org/2013/01/12/169198037/the-second-disaster-making-good-intentions-useful?ft=nprml&f=\n", "link: http://api.npr.org/query?id=169198037&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "relatedLink: \n", " \n", "caption: Where The Mask Seen In Global Protests Is Made\n", "link: http://www.npr.org/sections/parallels/2013/07/03/198387951/where-the-mask-seen-in-global-protests-is-made?ft=nprml&f=\n", "link: http://api.npr.org/query?id=198387951&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "text: \n", " \n", "textWithHtml: \n", " \n", "story: \n", " \n", "link: http://www.npr.org/2013/06/21/193578367/calling-it-metadata-doesnt-make-surveillance-less-intrusive?ft=nprml&f=\n", "link: http://api.npr.org/query?id=193578367&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "link: http://n.pr/14jiPPb\n", "title: Calling It 'Metadata' Doesn't Make Surveillance Less Intrusive\n", "subtitle: None\n", "shortTitle: None\n", "teaser: Whether it's logs of phone calls or GPS data, commentator Geoff Nunberg says it still says a lot about who you are: \"Tell me where you've been and who you've been talking to, and I'll tell you about your politics, your health, your sexual orientation, your finances,\" he says.\n", "miniTeaser: Whether it's phone calls or GPS data, Geoff Nunberg says it still says a lot about who you are.\n", "slug: Commentary\n", "thumbnail: \n", " \n", "medium: http://media.npr.org/assets/img/2013/06/19/istock_000018865341large_sq-e9da0fee813fc2fba438fea3f0e5001e30cb4993.jpg?s=13\n", "large: http://media.npr.org/assets/img/2013/06/19/istock_000018865341large_sq-e9da0fee813fc2fba438fea3f0e5001e30cb4993.jpg?s=11\n", "provider: iStockphoto.com\n", "storyDate: Fri, 21 Jun 2013 13:25:00 -0400\n", "pubDate: Fri, 21 Jun 2013 14:47:00 -0400\n", "lastModifiedDate: Thu, 12 Sep 2013 10:21:47 -0400\n", "audioRunByDate: None\n", "show: \n", " \n", "program: Fresh Air\n", "showDate: Fri, 21 Jun 2013 11:00:00 -0400\n", "segNum: 2\n", "keywords: None\n", "priorityKeywords: None\n", "organization: \n", " \n", "name: NPR\n", "website: http://www.npr.org/\n", "transcript: \n", " \n", "link: http://api.npr.org/transcript?id=193578367&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Commentary\n", "link: http://www.npr.org/sections/commentary/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1060&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Fresh Air for June 21, 2013\n", "link: http://www.npr.org/programs/fresh-air/2013/06/21/193925921/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=193925921&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Fresh Air Reviews\n", "link: http://www.npr.org/series/125638008/fresh-air-reviews?ft=nprml&f=\n", "link: http://api.npr.org/query?id=125638008&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Commentary\n", "link: http://www.npr.org/sections/commentary/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1060&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Columns\n", "link: http://www.npr.org/sections/columns/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1058&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Opinion\n", "link: http://www.npr.org/sections/opinion/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1057&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Technology\n", "link: http://www.npr.org/sections/technology/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1019&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Arts & Life\n", "link: http://www.npr.org/sections/arts/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1008&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Home Page Top Stories\n", "link: http://www.npr.org/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1002&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Fresh Air\n", "link: http://www.npr.org/programs/fresh-air/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=13&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "audio: \n", " \n", "title: None\n", "duration: 351\n", "description: None\n", "format: \n", " \n", "mp3: http://api.npr.org/m3u/1193954334-10056c.m3u?orgId=1&topicId=1060&d=351&p=13&story=193578367&t=progseg&e=193925921&seg=2&ft=nprml&f=\n", "wm: http://www.npr.org/templates/dmg/dmg_wmref_em.php?id=193954334&type=1&mtype=WM&orgId=1&topicId=1060&d=351&p=13&story=193578367&t=progseg&e=193925921&seg=2&ft=nprml&f=\n", "mp4: http://pd.npr.org/npr-mp4/npr/fa/2013/06/20130621_fa_02.mp4?orgId=1&topicId=1060&d=351&p=13&story=193578367&t=progseg&e=193925921&seg=2&ft=nprml&f=\n", "mediastream: rtmp://flash.npr.org/ondemand/mp3:anon.npr-mp3/npr/fa/2013/06/20130621_fa_02.mp3\n", "region: all\n", "rightsHolder: None\n", "permissions: \n", " \n", "download: None\n", "stream: None\n", "embed: None\n", "stream: None\n", "byline: \n", " \n", "name: Geoff Nunberg\n", "link: http://www.npr.org/people/2101618/geoff-nunberg?ft=nprml&f=\n", "link: http://api.npr.org/query?id=2101618&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "container: \n", " \n", "title: More From Geoff Nunberg\n", "introText: None\n", "colSpan: 1\n", "displayOptions: Display Both\n", "link: None\n", "link: None\n", "link: None\n", "image: \n", " \n", "title: A card catalog\n", "caption: None\n", "link: None\n", "producer: Andrey Kuzmin\n", "provider: iStockphoto.com\n", "copyright: None\n", "enlargement: \n", " \n", "caption: None\n", "crop: None\n", "crop: None\n", "crop: None\n", "crop: None\n", "relatedLink: \n", " \n", "caption: Forget YOLO: Why 'Big Data' Should Be The Word Of The Year\n", "link: http://www.npr.org/2012/12/20/167702665/geoff-nunbergs-word-of-the-year-big-data?ft=nprml&f=\n", "link: http://api.npr.org/query?id=167702665&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "relatedLink: \n", " \n", "caption: Even Dictionaries Grapple With Getting 'Marriage' Right\n", "link: http://www.npr.org/2013/04/04/176235479/even-dictionaries-grapple-with-getting-marriage-right?ft=nprml&f=\n", "link: http://api.npr.org/query?id=176235479&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "relatedLink: \n", " \n", "caption: 'Horrific' And 'Surreal': The Words We Use To Bear Witness\n", "link: http://www.npr.org/2013/04/26/179021100/horrific-and-surreal-the-words-we-use-to-bear-witness?ft=nprml&f=\n", "link: http://api.npr.org/query?id=179021100&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "pullQuote: \n", " \n", "text: Whether or not you think the government should be sweeping this stuff up, calling it metadata doesn't make the process any less intrusive. Tell me where you've been and who you've been talking to, and I'll tell you about your politics, your health, your sexual orientation, your finances. \n", "person: None\n", "date: None\n", "text: \n", " \n", "textWithHtml: \n", " \n", "story: \n", " \n", "link: http://www.npr.org/2013/03/24/174982423/former-bush-aide-pushes-conservative-case-for-gay-marriage?ft=nprml&f=\n", "link: http://api.npr.org/query?id=174982423&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "link: http://n.pr/YrQlSA\n", "title: Former Bush Aide Pushes 'Conservative Case' For Gay Marriage\n", "subtitle: None\n", "shortTitle: None\n", "teaser: Ken Mehlman, the political director for the George W. Bush White House, compares the right to marry to other fundamental rights conservatives embrace. He rounded up a group of 131 prominent Republicans to sign a legal brief that's at odds with the House GOP leadership and the party's platform.\n", "miniTeaser: Ken Mehlman compares the right to marry to other fundamental rights conservatives embrace.\n", "slug: Same-Sex Marriage And The Supreme Court\n", "thumbnail: \n", " \n", "medium: http://media.npr.org/assets/img/2013/03/21/56633856_sq-abd9085b957eb2e00f61c6236663eb856c9e0654.jpg?s=13\n", "large: http://media.npr.org/assets/img/2013/03/21/56633856_sq-abd9085b957eb2e00f61c6236663eb856c9e0654.jpg?s=11\n", "provider: Getty Images\n", "storyDate: Sun, 24 Mar 2013 06:05:00 -0400\n", "pubDate: Sun, 24 Mar 2013 08:05:00 -0400\n", "lastModifiedDate: Sun, 24 Mar 2013 18:46:54 -0400\n", "audioRunByDate: None\n", "show: \n", " \n", "program: Weekend Edition Sunday\n", "showDate: Sun, 24 Mar 2013 08:00:00 -0400\n", "segNum: 11\n", "keywords: None\n", "priorityKeywords: None\n", "organization: \n", " \n", "name: NPR\n", "website: http://www.npr.org/\n", "transcript: \n", " \n", "link: http://api.npr.org/transcript?id=174982423&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Weekend Edition Sunday for March 24, 2013\n", "link: http://www.npr.org/programs/weekend-edition-sunday/2013/03/24/174983550/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=174983550&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Same-Sex Marriage And The Supreme Court\n", "link: http://www.npr.org/series/174965583/same-sex-marriage-and-the-supreme-court?ft=nprml&f=\n", "link: http://api.npr.org/query?id=174965583&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Law\n", "link: http://www.npr.org/sections/law/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1070&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Law\n", "link: http://www.npr.org/sections/law/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1070&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Politics\n", "link: http://www.npr.org/sections/politics/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1014&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: U.S.\n", "link: http://www.npr.org/sections/us/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1003&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Home Page Top Stories\n", "link: http://www.npr.org/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1002&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: News\n", "link: http://www.npr.org/sections/news/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1001&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Weekend Edition Sunday\n", "link: http://www.npr.org/programs/weekend-edition-sunday/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=10&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "audio: \n", " \n", "title: None\n", "duration: 306\n", "description: None\n", "format: \n", " \n", "mp3: http://api.npr.org/m3u/1175173098-1b63a1.m3u?orgId=1&topicId=1070&aggIds=174965583&d=306&p=10&story=174982423&t=progseg&e=174983550&seg=11&ft=nprml&f=\n", "wm: http://www.npr.org/templates/dmg/dmg_wmref_em.php?id=175173098&type=1&mtype=WM&orgId=1&topicId=1070&aggIds=174965583&d=306&p=10&story=174982423&t=progseg&e=174983550&seg=11&ft=nprml&f=\n", "mp4: http://pd.npr.org/npr-mp4/npr/wesun/2013/03/20130324_wesun_11.mp4?orgId=1&topicId=1070&aggIds=174965583&d=306&p=10&story=174982423&t=progseg&e=174983550&seg=11&ft=nprml&f=\n", "mediastream: rtmp://flash.npr.org/ondemand/mp3:anon.npr-mp3/npr/wesun/2013/03/20130324_wesun_11.mp3\n", "region: all\n", "rightsHolder: None\n", "permissions: \n", " \n", "download: None\n", "stream: None\n", "embed: None\n", "stream: None\n", "byline: \n", " \n", "name: Nina Totenberg\n", "link: http://www.npr.org/people/2101289/nina-totenberg?ft=nprml&f=\n", "link: http://api.npr.org/query?id=2101289&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "container: \n", " \n", "title: Related Stories\n", "introText: None\n", "colSpan: 2\n", "displayOptions: Display Both\n", "link: None\n", "link: None\n", "link: None\n", "image: \n", " \n", "title: Ken Mehlman, then chairman of the Republican National Committee, speaks during a meeting at the Capitol Hilton in January 2006 in Washington, D.C.\n", "caption: Ken Mehlman, then chairman of the Republican National Committee, speaks during a meeting at the Capitol Hilton in January 2006 in Washington, D.C.\n", "link: None\n", "producer: Chip Somodevilla\n", "provider: Getty Images\n", "copyright: None\n", "enlargement: \n", " \n", "caption: None\n", "crop: None\n", "crop: None\n", "crop: None\n", "crop: None\n", "relatedLink: \n", " \n", "caption: Timeline: Gay Marriage In Law, Pop Culture And The Courts\n", "link: http://www.npr.org/2013/03/21/174732431/timeline-gay-marriage-in-law-pop-culture-and-the-courts?ft=nprml&f=\n", "link: http://api.npr.org/query?id=174732431&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "relatedLink: \n", " \n", "caption: Meet The 83-Year-Old Taking On The U.S. Over Same-Sex Marriage\n", "link: http://www.npr.org/2013/03/21/174944430/meet-the-83-year-old-taking-on-the-u-s-over-same-sex-marriage?ft=nprml&f=\n", "link: http://api.npr.org/query?id=174944430&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "relatedLink: \n", " \n", "caption: As Gay Marriage Heads To Court, A Look Back At The Bumpy Ride\n", "link: http://www.npr.org/2013/03/21/174879832/as-gay-marriage-heads-to-court-a-look-back-at-the-bumpy-ride?ft=nprml&f=\n", "link: http://api.npr.org/query?id=174879832&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "pullQuote: \n", " \n", "text: You can't change the past, but you can try to, as much as you can going forward, be helpful and be constructive.\n", "person: Ken Mehlman\n", "date: None\n", "text: \n", " \n", "textWithHtml: \n", " \n", "story: \n", " \n", "link: http://www.npr.org/sections/13.7/2013/03/12/174028759/big-data-is-the-steam-engine-of-our-time?ft=nprml&f=\n", "link: http://api.npr.org/query?id=174028759&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "link: http://n.pr/Y65cyZ\n", "title: Big Data Is The Steam Engine Of Our Time\n", "subtitle: None\n", "shortTitle: None\n", "teaser: Big Data is no flash in the pan. It's a revolution that will transform how we live. It's another in a long line of human attempts to bring order to the universe. As such, commentator Adam Frank also says it will change how we do science.\n", "miniTeaser: Like it or not, Big Data is not going away. It's only going to get bigger (and bigger).\n", "slug: 13.7: Cosmos And Culture\n", "thumbnail: \n", " \n", "medium: http://media.npr.org/assets/img/2013/03/12/160313744-tokyo-stocks_sq-3ceba7291ac649b7c2de903e9272bc57db02da8b.jpg?s=13\n", "large: http://media.npr.org/assets/img/2013/03/12/160313744-tokyo-stocks_sq-3ceba7291ac649b7c2de903e9272bc57db02da8b.jpg?s=11\n", "provider: AFP/Getty Images\n", "storyDate: Tue, 12 Mar 2013 12:28:00 -0400\n", "pubDate: Sat, 13 Apr 2013 13:48:00 -0400\n", "lastModifiedDate: Sat, 13 Apr 2013 13:47:59 -0400\n", "audioRunByDate: None\n", "keywords: None\n", "priorityKeywords: None\n", "organization: \n", " \n", "name: NPR\n", "website: http://www.npr.org/\n", "parent: \n", " \n", "title: Commentary\n", "link: http://www.npr.org/sections/commentary/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1060&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Emanuel Derman\n", "link: http://www.npr.org/tags/174098122/emanuel-derman?ft=nprml&f=\n", "link: http://api.npr.org/query?id=174098122&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Big Data\n", "link: http://www.npr.org/tags/161337202/big-data?ft=nprml&f=\n", "link: http://api.npr.org/query?id=161337202&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Culture\n", "link: http://www.npr.org/sections/13.7/126355748/culture/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=126355748&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: 13.7: Cosmos And Culture\n", "link: http://www.npr.org/sections/13.7/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=114424647&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Commentary\n", "link: http://www.npr.org/sections/commentary/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1060&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Opinion\n", "link: http://www.npr.org/sections/opinion/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1057&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Technology\n", "link: http://www.npr.org/sections/technology/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1019&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "parent: \n", " \n", "title: Home Page Top Stories\n", "link: http://www.npr.org/?ft=nprml&f=\n", "link: http://api.npr.org/query?id=1002&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "byline: \n", " \n", "name: Adam Frank\n", "link: http://www.npr.org/people/336050847/adam-frank?ft=nprml&f=\n", "link: http://api.npr.org/query?id=336050847&meta=inherit&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "image: \n", " \n", "title: Big Data: trying to make sense of the numbers\n", "caption: Big Data: trying to make sense of the numbers\n", "link: None\n", "producer: Kazuhiro Nogi\n", "provider: AFP/Getty Images\n", "copyright: None\n", "enlargement: \n", " \n", "caption: None\n", "crop: None\n", "crop: None\n", "crop: None\n", "crop: None\n", "crop: None\n", "relatedLink: \n", " \n", "caption: Self-Tracking Apps To Help You 'Quantify' Yourself\n", "link: http://www.npr.org/sections/alltechconsidered/2013/03/12/174058272/self-tracking-apps-to-help-you-quantify-yourself?ft=nprml&f=\n", "link: http://api.npr.org/query?id=174058272&apiKey=MDE5Mzg3Mjc2MDE0MzMyMjM3NjM5ZTI2Ng001\n", "text: \n", " \n", "textWithHtml: \n", " \n" ] } ], "prompt_number": 18 }, { "cell_type": "heading", "level": 3, "metadata": {}, "source": [ "Now that we see how the output looks, we can format and print the output as we want it to appear." ] }, { "cell_type": "code", "collapsed": false, "input": [ "import lxml.etree as etree\n", "#parse the API response xml\n", "tree = etree.XML(r.content)\n", "\n", "#library to format the date later\n", "from dateutil import parser as dtp\n", "\n", "#define the list that the selected stories will go into\n", "storylist = []\n", "#find all of the elements in the tree that make up a story\n", "#the story tag is 2 \"layers\" down into the tree\n", "stories = [subitem for item in tree for subitem in item if subitem.tag=='story']\n", "for story in stories:\n", " #define dictionary for story parts\n", " storypart = {}\n", " for element in story:\n", " #print(element.tag) #for testing\n", " if element.tag == 'title':\n", " storypart[\"title\"] = element.text\n", " if element.tag == 'teaser':\n", " storypart[\"teaser\"] = element.text\n", " if element.tag == 'link' and element.attrib['type'] == 'html':\n", " storypart[\"htmllink\"] = element.text\n", " for subelement in element.iter(\"*\"):\n", " if subelement.tag == 'program':\n", " storypart[\"program\"] = subelement.text\n", " if subelement.tag == 'mp3':\n", " storypart[\"mp3link\"] = subelement.text\n", " if subelement.tag == 'storyDate':\n", " dt = dtp.parse(subelement.text)\n", " storypart[\"date\"] = dt.strftime(\"%x %I:%M%p\")\n", " #print(storypart) #for testing\n", " #we're creating a list of dictionaries here\n", " storylist.append(storypart)\n", "#format for display\n", "#iterate through list of stories, then output items in each story's dictionary in desired display order\n", "for story in storylist:\n", " #check to see if dict key exists, because not every story has every element\n", " #and error is thrown if you refer to nonexistent key\n", " if \"title\" in story:\n", " print(\"\\n***** \" + story[\"title\"] + \" *****\")\n", " print()\n", " if \"teaser\" in story:\n", " print(story[\"teaser\"],\"\\n\")\n", " if \"htmllink\" in story:\n", " print (\"Story Link: \" + story[\"htmllink\"]) \n", " if \"date\" in story:\n", " print(\"Published: \" + story[\"date\"])\n", " if \"program\" in story:\n", " print(\"Program: \" + story[\"program\"])\n", " if \"mp3link\" in story:\n", " print(\"Download MP3: \" + story[\"mp3link\"])\n", " print(\"\\n\")\n", "\n", " " ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "\n", "***** What If Web Search Results Were Based On Accuracy? *****\n", "\n", "Google has been researching the possibility of ranking search results based on established facts. Were this to become the norm, it would have huge implications for future discourse, says Adam Frank. \n", "\n", "Story Link: http://www.npr.org/sections/13.7/2015/03/24/395012901/what-if-web-search-results-were-based-on-accuracy?ft=nprml&f=\n", "Published: 03/24/15 07:55AM\n", "\n", "\n", "\n", "***** Now Algorithms Are Deciding Whom To Hire, Based On Voice *****\n", "\n", "If you're trying out for a job, the one judging you may not be a person \u2014 it could be a computer. Algorithms are evaluating human voices to determine which ones are engaging, calming and trustworthy. \n", "\n", "Story Link: http://www.npr.org/sections/alltechconsidered/2015/03/23/394827451/now-algorithms-are-deciding-whom-to-hire-based-on-voice?ft=nprml&f=\n", "Published: 03/23/15 04:40PM\n", "Program: All Things Considered\n", "Download MP3: http://api.npr.org/m3u/1394906629-e8c9fa.m3u?orgId=1&topicId=1019&d=267&p=2&story=394827451&t=progseg&e=394807955&seg=9&ft=nprml&f=\n", "\n", "\n", "\n", "***** A Data Analyst's Blog Is Transforming How New Yorkers See Their City *****\n", "\n", "Ben Wellington tracked down two of the city's costliest parking spots and its leafiest neighborhoods, while pointing out questionable health grades for restaurants and odd charges for subway riders. \n", "\n", "Story Link: http://www.npr.org/sections/alltechconsidered/2014/11/28/367046864/a-data-analysts-blog-is-transforming-how-new-yorkers-see-their-city?ft=nprml&f=\n", "Published: 11/28/14 08:03AM\n", "\n", "\n", "\n", "***** Parties Compete To Build The Best Voter-Turnout Machine *****\n", "\n", "A week ahead of Election Day, both parties are still scrambling to identify and turn out every one of their voters. These get-out-the-vote operations are as expensive and high-tech as every other bit of modern campaigning. \n", "\n", "Story Link: http://www.npr.org/2014/10/27/359233263/parties-compete-to-build-the-best-voter-turnout-machine?ft=nprml&f=\n", "Published: 10/27/14 04:36AM\n", "Program: Morning Edition\n", "Download MP3: http://api.npr.org/m3u/1359233264-106fb3.m3u?orgId=1&topicId=1014&d=432&p=3&story=359233263&t=progseg&e=359233262&seg=1&ft=nprml&f=\n", "\n", "\n", "\n", "***** In San Diego, A Boot Camp For Data Junkies *****\n", "\n", "Natasha Balac runs a two-day boot camp out of the San Diego Supercomputer Center for people from all types of industries to learn the tools and algorithms to help them analyze data and spot patterns. \n", "\n", "Story Link: http://www.npr.org/2014/09/20/350155825/in-san-diego-a-bootcamp-for-data-junkies?ft=nprml&f=\n", "Published: 09/20/14 04:55PM\n", "Program: All Things Considered\n", "Download MP3: http://api.npr.org/m3u/1350155828-c6e491.m3u?orgId=1&topicId=1019&d=247&p=2&story=350155825&t=progseg&e=350108710&seg=7&ft=nprml&f=\n", "\n", "\n", "\n", "***** Facebook Apologizes For Manipulation; Data Research Likely To Go On *****\n", "\n", "A mood study that Facebook conducted on unwitting users has been criticized. Data science plays an integral role at Facebook \u2014 for bottom line reasons, and in collaboration with academic researchers. \n", "\n", "Story Link: http://www.npr.org/2014/07/04/328373960/facebook-apologizes-for-manipulation-data-research-likely-to-go-on?ft=nprml&f=\n", "Published: 07/04/14 05:05AM\n", "Program: Morning Edition\n", "Download MP3: http://api.npr.org/m3u/1328373961-eb7891.m3u?orgId=1&topicId=1006&d=112&p=3&story=328373960&t=progseg&e=328373945&seg=4&ft=nprml&f=\n", "\n", "\n", "\n", "***** The Occupy Movement At 2: Many Voices, Many Messages *****\n", "\n", "Demonstrators packed lower Manhattan on Tuesday, two years after the launch of the Occupy Wall Street movement. While Occupy's prominence has faded since becoming a household name in 2011, its supporters say the group's concerns have helped prompt a national conversation about income inequality. \n", "\n", "Story Link: http://www.npr.org/2013/09/17/223356184/the-occupy-movement-at-two-many-voices-many-messages?ft=nprml&f=\n", "Published: 09/17/13 05:10PM\n", "Program: All Things Considered\n", "Download MP3: http://api.npr.org/m3u/1223472694-83d6af.m3u?orgId=1&topicId=1003&d=238&p=2&story=223356184&t=progseg&e=223381920&seg=8&ft=nprml&f=\n", "\n", "\n", "\n", "***** Calling It 'Metadata' Doesn't Make Surveillance Less Intrusive *****\n", "\n", "Whether it's logs of phone calls or GPS data, commentator Geoff Nunberg says it still says a lot about who you are: \"Tell me where you've been and who you've been talking to, and I'll tell you about your politics, your health, your sexual orientation, your finances,\" he says. \n", "\n", "Story Link: http://www.npr.org/2013/06/21/193578367/calling-it-metadata-doesnt-make-surveillance-less-intrusive?ft=nprml&f=\n", "Published: 06/21/13 01:25PM\n", "Program: Fresh Air\n", "Download MP3: http://api.npr.org/m3u/1193954334-10056c.m3u?orgId=1&topicId=1060&d=351&p=13&story=193578367&t=progseg&e=193925921&seg=2&ft=nprml&f=\n", "\n", "\n", "\n", "***** Former Bush Aide Pushes 'Conservative Case' For Gay Marriage *****\n", "\n", "Ken Mehlman, the political director for the George W. Bush White House, compares the right to marry to other fundamental rights conservatives embrace. He rounded up a group of 131 prominent Republicans to sign a legal brief that's at odds with the House GOP leadership and the party's platform. \n", "\n", "Story Link: http://www.npr.org/2013/03/24/174982423/former-bush-aide-pushes-conservative-case-for-gay-marriage?ft=nprml&f=\n", "Published: 03/24/13 06:05AM\n", "Program: Weekend Edition Sunday\n", "Download MP3: http://api.npr.org/m3u/1175173098-1b63a1.m3u?orgId=1&topicId=1070&aggIds=174965583&d=306&p=10&story=174982423&t=progseg&e=174983550&seg=11&ft=nprml&f=\n", "\n", "\n", "\n", "***** Big Data Is The Steam Engine Of Our Time *****\n", "\n", "Big Data is no flash in the pan. It's a revolution that will transform how we live. It's another in a long line of human attempts to bring order to the universe. As such, commentator Adam Frank also says it will change how we do science. \n", "\n", "Story Link: http://www.npr.org/sections/13.7/2013/03/12/174028759/big-data-is-the-steam-engine-of-our-time?ft=nprml&f=\n", "Published: 03/12/13 12:28PM\n", "\n", "\n" ] } ], "prompt_number": 28 }, { "cell_type": "code", "collapsed": false, "input": [], "language": "python", "metadata": {}, "outputs": [] } ], "metadata": {} } ] }