Feed Genie Support Product Page
Cannot access all tags from a Smugmug RSS2.0 feed
Asked 25 Oct 2012 16:10:36
1
has this question
25 Oct 2012 16:10:36 John O'Melia posted:
Just bought this today and not sure it's doing what I need.I'm creating a custom feed calling a photo album on SmugMug (RSS2.0 feed) and the structure is as follows (header section and one item):
<rss version="2.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:exif="http://www.exif.org/specifications.html" xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom"> <channel> <title>New Hampshire Fall 2012</title> <link>http://jacko.smugmug.com/gallery/25894606_JGq5Bt/</link> <description></description> <atom:icon>http://www.smugmug.com/img/feed-icon.png</atom:icon> <category>Vacation</category> <pubDate>Fri, 12 Oct 2012 18:37:40 -0700</pubDate> <lastBuildDate>Fri, 12 Oct 2012 18:42:54 -0700</lastBuildDate> <generator>http://www.smugmug.com/</generator> <copyright>Copyright 2012, the copyright holder of each photograph. Some portions copyright SmugMug. All rights reserved.</copyright> <image> <url>http://jacko.smugmug.com/Vacation/New-Hampshire-Fall-2012/i-5JkzckR/0/Ti/DSC3797-Ti.jpg</url> <title>New Hampshire Fall 2012</title> <link>http://jacko.smugmug.com/gallery/25894606_JGq5Bt/</link> </image> <atom:link rel="self" type="application/rss+xml" href="http://jacko.smugmug.com/hack/feed.mg?Type=gallery&Data=25894606_JGq5Bt&format=rss200"/> <item> <title>JackO's photo</title> <link>http://jacko.smugmug.com/Vacation/New-Hampshire-Fall-2012/25894606_JGq5Bt#!i=2145934932&k=5JkzckR</link> <description><p><a href="http://jacko.smugmug.com">JackO</a> </p><p><a href="http://jacko.smugmug.com/Vacation/New-Hampshire-Fall-2012/25894606_JGq5Bt#!i=2145934932&k=5JkzckR" title="JackO's photo"><img src="http://jacko.smugmug.com/Vacation/New-Hampshire-Fall-2012/i-5JkzckR/0/Th/DSC3797-Th.jpg" width="150" height="150" alt="JackO's photo" title="JackO's photo" style="border: 1px solid #000000;" /></a></p></description> <category>Vacation</category> <pubDate>Fri, 12 Oct 2012 18:39:41 -0700</pubDate> <author>nobody@smugmug.com (JackO)</author> <guid isPermaLink="false">http://jacko.smugmug.com/Vacation/New-Hampshire-Fall-2012/i-5JkzckR/0/Th/DSC3797-Th.jpg</guid> <exif:DateTimeOriginal>2012-10-06 13:03:55</exif:DateTimeOriginal> <media:group> <media:content url="http://jacko.smugmug.com/Vacation/New-Hampshire-Fall-2012/i-5JkzckR/0/Ti/DSC3797-Ti.jpg" fileSize="12135" type="image/jpeg" medium="image" width="100" height="100"> <media:hash algo="md5">04f7d8962cbc196afc4663596ee8a3c3</media:hash> </media:content> <media:content url="http://jacko.smugmug.com/Vacation/New-Hampshire-Fall-2012/i-5JkzckR/0/Th/DSC3797-Th.jpg" fileSize="20141" type="image/jpeg" medium="image" width="150" height="150" isDefault="true"> <media:hash algo="md5">ca98d2e31696e852e6fd35ff34db0eed</media:hash> </media:content> <media:content url="http://jacko.smugmug.com/Vacation/New-Hampshire-Fall-2012/i-5JkzckR/0/S/DSC3797-S.jpg" fileSize="49676" type="image/jpeg" medium="image" width="201" height="300"> <media:hash algo="md5">393e67286d99187a5e9de0fd68a1ff1d</media:hash> </media:content> <media:content url="http://jacko.smugmug.com/Vacation/New-Hampshire-Fall-2012/i-5JkzckR/0/M/DSC3797-M.jpg" fileSize="90468" type="image/jpeg" medium="image" width="301" height="450"> <media:hash algo="md5">c1a8652a3bb1f9415015c0be3bfd450a</media:hash> </media:content> <media:content url="http://jacko.smugmug.com/Vacation/New-Hampshire-Fall-2012/i-5JkzckR/0/L/DSC3797-L.jpg" fileSize="140401" type="image/jpeg" medium="image" width="402" height="600"> <media:hash algo="md5">b7873a617ac740ff50e1018bbea24e8f</media:hash> </media:content> <media:content url="http://jacko.smugmug.com/Vacation/New-Hampshire-Fall-2012/i-5JkzckR/0/XL/DSC3797-XL.jpg" fileSize="205371" type="image/jpeg" medium="image" width="514" height="768"> <media:hash algo="md5">196217117a73e39c1053dbf7c98cd3aa</media:hash> </media:content> <media:content url="http://jacko.smugmug.com/Vacation/New-Hampshire-Fall-2012/i-5JkzckR/0/X2/DSC3797-X2.jpg" fileSize="290266" type="image/jpeg" medium="image" width="642" height="960"> <media:hash algo="md5">85cd58a73f7856522c86b9b96cbb2e1b</media:hash> </media:content> <media:content url="http://jacko.smugmug.com/Vacation/New-Hampshire-Fall-2012/i-5JkzckR/0/X3/DSC3797-X3.jpg" fileSize="415265" type="image/jpeg" medium="image" width="803" height="1200"> <media:hash algo="md5">3297843e93bdb2af77d7f8f1bfdae430</media:hash> </media:content> <media:content url="http://jacko.smugmug.com/Vacation/New-Hampshire-Fall-2012/i-5JkzckR/0/O/DSC3797.jpg" fileSize="5695617" type="image/jpeg" medium="image" width="2592" height="3872"> <media:hash algo="md5">99c4df6275841d266ac88bd23ad733bd</media:hash> </media:content> </media:group> <media:title type="html">JackO's photo</media:title> <media:text type="html"><p><a href="http://jacko.smugmug.com">JackO</a> </p><p><a href="http://jacko.smugmug.com/Vacation/New-Hampshire-Fall-2012/25894606_JGq5Bt#!i=2145934932&k=5JkzckR" title="JackO's photo"><img src="http://jacko.smugmug.com/Vacation/New-Hampshire-Fall-2012/i-5JkzckR/0/Th/DSC3797-Th.jpg" width="150" height="150" alt="JackO's photo" title="JackO's photo" style="border: 1px solid #000000;" /></a></p></media:text> <media:thumbnail url="http://jacko.smugmug.com/Vacation/New-Hampshire-Fall-2012/i-5JkzckR/0/Th/DSC3797-Th.jpg" width="150" height="150"/> <media:category>Vacation</media:category> <media:copyright url="http://jacko.smugmug.com">JackO</media:copyright> <media:credit role="photographer">JackO</media:credit> </item>
I can only access the node for a thumbnail (GUID). What I want is to access one of the nodes in <media:group><media:content> but can't seem to do it. Is there a way to see ALL the nodes returned in feed genie or am I stuck with the preset ones already there?
Replies
Replied 26 Oct 2012 08:36:08
26 Oct 2012 08:36:08 Miroslav Zografski replied:
Hello John,
Seems that your feed is not correctly generated test the link of the feed in FireFox or Chrome.
Regards.
Seems that your feed is not correctly generated test the link of the feed in FireFox or Chrome.
Regards.
Replied 28 Oct 2012 17:01:42
28 Oct 2012 17:01:42 John O'Melia replied:
Well, it is correctly generated, I only showed a snippet. When I open it in a browser (Chrome,Safari) it opens in Google Reader and displays each image and name. It is complex and nested, and I don't know how to navigate its structure down to the level to get the correct image. I thought this extension would help me do that.
On another note, I thought I would also be able to use this extension to grab photos from Facebook but it seems I can only get user postings?
On another note, I thought I would also be able to use this extension to grab photos from Facebook but it seems I can only get user postings?
Replied 29 Oct 2012 07:13:49
29 Oct 2012 07:13:49 Miroslav Zografski replied:
Hello John,
then provide me whit the exact link you are using to get the feed.
Regards.
then provide me whit the exact link you are using to get the feed.
Regards.
Replied 29 Oct 2012 12:07:54
29 Oct 2012 12:07:54 John O'Melia replied:
Replied 08 Nov 2012 10:42:38
08 Nov 2012 10:42:38 Teodor Kuduschiev replied:
Hello John,
feed genie displays what is returned by the feed. In your case, for example the "description" returns:
The title and link attributes are also working fine.
feed genie displays what is returned by the feed. In your case, for example the "description" returns:
<a href="http://jacko.smugmug.com">JackO</a> </p><p><a href="http://jacko.smugmug.com/Vacation/New-Hampshire-Fall-2012/25894606_JGq5Bt#!i=2145938499&k=Xh5nHT4" title="JackO's photo"><img src="http://jacko.smugmug.com/Vacation/New-Hampshire-Fall-2012/i-Xh5nHT4/0/Th/DSC_3826-Th.jpg" width="150" height="150" alt="JackO's photo" title="JackO's photo" style="border: 1px solid #000000;" /></a>
The title and link attributes are also working fine.
Replied 08 Nov 2012 21:10:12
08 Nov 2012 21:10:12 John O'Melia replied:
The reason I'm using this feed is to grab images for a gallery on a website. With that in mind, what I need, aside from title and description, are all the images in the gallery of a specific size. In the feed, for each photo you get the following list of images by size:
I would want to grab the 5th image because that's the size needed for my gallery:
If I was given an array of the image sizes, so be it, I'll just loop through the array and take the one I want. But I can't seem to figure out how to access that from what's returned by Feed Genie. In fact, I tried to do this on my own first but since I'm not a superstar coder I came to you guys thinking this would solve my problem. Am I wrong?
<media:group> <media:content url="http://jacko.smugmug.com/Vacation/New-Hampshire-Fall-2012/i-5JkzckR/0/Ti/DSC_3797-Ti.jpg" fileSize="12135" type="image/jpeg" medium="image" width="100" height="100"> <media:hash algo="md5">04f7d8962cbc196afc4663596ee8a3c3</media:hash> </media:content> <media:content url="http://jacko.smugmug.com/Vacation/New-Hampshire-Fall-2012/i-5JkzckR/0/Th/DSC_3797-Th.jpg" fileSize="20141" type="image/jpeg" medium="image" width="150" height="150" isDefault="true"> <media:hash algo="md5">ca98d2e31696e852e6fd35ff34db0eed</media:hash> </media:content> <media:content url="http://jacko.smugmug.com/Vacation/New-Hampshire-Fall-2012/i-5JkzckR/0/S/DSC_3797-S.jpg" fileSize="49676" type="image/jpeg" medium="image" width="201" height="300"> <media:hash algo="md5">393e67286d99187a5e9de0fd68a1ff1d</media:hash> </media:content> <media:content url="http://jacko.smugmug.com/Vacation/New-Hampshire-Fall-2012/i-5JkzckR/0/M/DSC_3797-M.jpg" fileSize="90468" type="image/jpeg" medium="image" width="301" height="450"> <media:hash algo="md5">c1a8652a3bb1f9415015c0be3bfd450a</media:hash> </media:content> <media:content url="http://jacko.smugmug.com/Vacation/New-Hampshire-Fall-2012/i-5JkzckR/0/L/DSC_3797-L.jpg" fileSize="140401" type="image/jpeg" medium="image" width="402" height="600"> <media:hash algo="md5">b7873a617ac740ff50e1018bbea24e8f</media:hash> </media:content> <media:content url="http://jacko.smugmug.com/Vacation/New-Hampshire-Fall-2012/i-5JkzckR/0/XL/DSC_3797-XL.jpg" fileSize="205371" type="image/jpeg" medium="image" width="514" height="768"> <media:hash algo="md5">196217117a73e39c1053dbf7c98cd3aa</media:hash> </media:content> <media:content url="http://jacko.smugmug.com/Vacation/New-Hampshire-Fall-2012/i-5JkzckR/0/X2/DSC_3797-X2.jpg" fileSize="290266" type="image/jpeg" medium="image" width="642" height="960"> <media:hash algo="md5">85cd58a73f7856522c86b9b96cbb2e1b</media:hash> </media:content> <media:content url="http://jacko.smugmug.com/Vacation/New-Hampshire-Fall-2012/i-5JkzckR/0/X3/DSC_3797-X3.jpg" fileSize="415265" type="image/jpeg" medium="image" width="803" height="1200"> <media:hash algo="md5">3297843e93bdb2af77d7f8f1bfdae430</media:hash> </media:content> <media:content url="http://jacko.smugmug.com/Vacation/New-Hampshire-Fall-2012/i-5JkzckR/0/O/DSC_3797.jpg" fileSize="5695617" type="image/jpeg" medium="image" width="2592" height="3872"> <media:hash algo="md5">99c4df6275841d266ac88bd23ad733bd</media:hash> </media:content> </media:group>
I would want to grab the 5th image because that's the size needed for my gallery:
<media:content url="http://jacko.smugmug.com/Vacation/New-Hampshire-Fall-2012/i-5JkzckR/0/L/DSC_3797-L.jpg" fileSize="140401" type="image/jpeg" medium="image" width="402" height="600"> <media:hash algo="md5">b7873a617ac740ff50e1018bbea24e8f</media:hash> </media:content>
If I was given an array of the image sizes, so be it, I'll just loop through the array and take the one I want. But I can't seem to figure out how to access that from what's returned by Feed Genie. In fact, I tried to do this on my own first but since I'm not a superstar coder I came to you guys thinking this would solve my problem. Am I wrong?
Replied 09 Nov 2012 11:32:45
09 Nov 2012 11:32:45 Teodor Kuduschiev replied:
Hello,
Unfortunately the result you are trying to achieve is not possible using a feed constructed that way.
Unfortunately the result you are trying to achieve is not possible using a feed constructed that way.