Skip to content

Instantly share code, notes, and snippets.

@samuelcouch
Last active August 29, 2015 14:18
Show Gist options
  • Save samuelcouch/7b7c20592bf0092c322f to your computer and use it in GitHub Desktop.
Save samuelcouch/7b7c20592bf0092c322f to your computer and use it in GitHub Desktop.
{ 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' } } }
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