Last active
August 29, 2015 14:18
-
-
Save samuelcouch/7b7c20592bf0092c322f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ feed: | |
{ author: { name: [Object], uri: [Object] }, | |
entry: | |
[ [Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object], | |
[Object] ], | |
updated: { label: '2015-04-08T19:15:21-07:00' }, | |
rights: { label: 'Copyright 2008 Apple Inc.' }, | |
title: { label: 'iTunes Store: Customer Reviews' }, | |
icon: { label: 'http://itunes.apple.com/favicon.ico' }, | |
link: [ [Object], [Object], [Object], [Object], [Object], [Object] ], | |
id: { label: 'https://itunes.apple.com/us/rss/customerreviews/id=516439697/sortBy=mostRecent/json' } } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
feedparser.on('readable', function() { | |
var post; | |
while (post = this.read()) { | |
console.log('\n====\n%s \n%s \n%s \n%s \n%s \n%s \n%s \n%s \n====', | |
post['atom:updated']['#'], | |
post['atom:id']['#'], | |
post['atom:title']['#'], | |
post['atom:content'][0]['#'], | |
post['im:rating']['#'], | |
post['im:version']['#'], | |
post['atom:author'].name['#'], | |
post['atom:author'].uri['#'] | |
); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment