Closed yPhil-gh closed 6 years ago
Hey, I found out!
if (item['media:group']) {
console.log( "Media: (%s)", JSON.stringify(item['media:group']['media:content']));
var myArray = item['media:group']['media:content'];
for (var i = 0; i < myArray.length; i++) {
console.log('Wopopop:' + JSON.stringify(myArray[i]['@'].url));
}
}
Sorry about the noise :|
Hi!
This is not an issue per se, as feedparser works like a charm for me :1st_place_medal: but I want to dig further into the returned object ; Say for example the CNN feed:
This is what I get in
item
from a$.each(data.feedItems, function(index, item) {}
and it's very neat and predictable, now how would I then go and get theurl
of the first foundmedia:group:media:content
tag? I can't seem to get past/traverse the@
and#
entries, and I can't find any reference to a way to select this form of object ; please excuse me if it's a dumb question :|