RKG Logo 434-978-4300

I’m a big fan of Google Reader. I like to use the gold star to flag interesting posts. I wanted to export a list of these interesting posts, but couldn’t find any info online on how to do this. Here’s my approach. It is much simpler to do than to explain.

star1,png

1. Inside Google Reader, go to “Settings” on top right, then go to “Folders and Tags”. Click the box next to “Your starred items”, then use the “change sharing” pulldown to set your starred items to “Public.” If you are worried about privacy, you can make your starred list private again afterwards.

star2

2. Click “View Public Page” on the “Your Starred Items” page.

star3

3. Copy the URL of this page and paste it in a text editor or Notepad. It should have a long number it, 20 or so digits. That number represents your Google Reader account.

4. Paste this url into your text editor (this is all one line)

http://www.google.com/reader/public/atom/user/99999/state/com.google/starred?n=100

and replace the string of 9s with your long 20 digit number.

Make sure when you paste in the number that the URL still has a slash before and after the number. (Note on Nial Kennedy’s excellent Google API page there’s a typo where he omitted the initial slash on the starred item url.)

5. Voilà — that URL is an Atom feed for your starred items.

The n=100 parameter indicates how many items you want. You can adjust it appropriately.

6. Similarly, you can get Atom feeds for your Google Reader tags, your Google Reader read items, etc. Nial has the details.

7. Digression: at this point, if you wanted, you could run your Atom feed through Yahoo Pipes to derive a new feed, dropping rows or merging in additional information.

star4

8. Now, how to go from Atom to HTML? If you knew enough XSLT, you could use a simple transformation. I tried to cook up some XSLT so folks could use an online tool like xslt.sitesfree.com. No luck; couldn’t figure it out. Any XSLT gurus reading this? Advice?

9. Striking out with XSLT, I opted to use a script. I went with Ruby. Perl or Python would also work. Here’s the 8 line Ruby program:

require "rubygems"
require "open-uri"
require "simple-rss"
feed = "http://www.google.com/reader/public/atom/user/99999/state/com.google/starred?n=100"
rss = SimpleRSS.parse open(feed)
rss.entries.each do |item|
puts "<li><a href='#{item.link}'>#{item.title}</a></li>\n"
end

Again, replace those 9s with your 20 digit Google Reader id.

Ruby is installed by default on ‘nix and Mac; there’s a Win95 version here. gem install simple-rss gets you the RSS-parsing gem if you need it.

10. Now you can undo Step #1 to reset your starred feed to private if you want.

11. Here’s sample output from the script:

If you like this post, consider subscribing to our RSS feed. You can also have new posts sent to you via email.


Possibly Similar Posts

Trackback

http://www.rimmkaufman.com/rkgblog/2008/09/19/google-reader-export-starred-posts/trackback/

Blogs Citing This Post

  1. Pingback: Exporting Google Reader’s Stars | Tom Altman's Conversation on October 31, 2008

Comments

  1. Namu, October 8, 2008:

    Thank you for the great tip. Now I can read my starred items on my iPod touch offline!

  2. Bashwork, November 5, 2008:

    Here is an XSLT stylesheet I put together that one can modify to include/exclude/layout the data they want. Depending how crazy you want to go with it, there are also style-sheet and javascript components that can be modified.

    xslt http://pastebin.com/f412de634
    css http://pastebin.com/f35966c20
    js http://pastebin.com/f3e390475

  3. Roman, November 7, 2008:

    I’ve done it with feedburner

  4. David Lano, December 14, 2008:

    Wow, this is exactly what I was looking for! Thank you so much. :)

Your Comment

Tags

RKG Tags: ,

Technorati Tags: ,

Email Updates

Categories

Recent Comments

  • George Michie: Happy New Year, John. Market Motive is a good place to start. Keep a close eye on other good blogs: ours, SearchEngineLand, ClickZ....
  • john: Hi George and Happy New Year. I work for large Company who created a new SBU of New Media Specialists, basically resellers of Google And...
  • George Michie: Shelley, I hear you! We had a candidate who listed HTML as a proficiency on her resume. When pressed for specifics she said:...
  • Erin: Actually, I am always wondering this about myself. I surprise myself by what I know, but I don’t feel super confident about my...
  • Shelley Ellis: I like the sports analogy. My husband was a baseball coach for years and I still get tickled thinking about the time a mom told him...
  • AJ @ Web Domains, UK: I think the problem is spamming scripts are being written that target prominent blogging/comments systems such as Movable...
  • Debra Askanase: Hi Alan, Thanks for the quick overview. Just want to point out that the Wufoo outgoing link actually connects to Survey Monkey....
  • George: Vijay, that’s the best idea I’ve heard in months! Rick, your point is well-taken. It’s really noisy, and for many retail...
  • Alan: You can use this toy model in any channel where you can sales definitively tie sales back to an advertisement or promotion using a tracking...
  • Patrick: Nice model. What I’m wondering however is what type of net sales you should include. I believe these should be the sales resulting...
  • Vijay R: With mobile phones being ubiquitous, why not use them as a channel to measure effect of online on offline sales? For instance, offer a...
  • George: Not all of our clients do think this way. Many do, but others are more concerned about share of voice, and the trappings of a good program....
  • Jim Novo: George, I have to ask the same question I asked Alan on his “melons” post - how do we get people to care about profits? Every...
  • Rick Galan: Even doing specific geo-targeted tests really don’t get us all of the way there though. There is so much fluctuation in consumer...
  • Andrew: $800 billion is perhaps “only” 5% of GDP, but it exceeds all of the federal government’s other (individual) outlays....

Blog Stats

  • Posts: 802
  • Words: 356,638
  • Comments: 1,584

Administration