Standards are great, aren’t they? OPML rationalization

Tony asked me yesterday what blogs and other news sources I read. I was going to point him to my list of “blogs I try to read regularly”, which is a blogroll from Bloglines, when I realized that my Bloglines subscription list and my Google Reader subscription list (which was originally derived by exporting the … Continue reading “Standards are great, aren’t they? OPML rationalization”

Tony asked me yesterday what blogs and other news sources I read. I was going to point him to my list of “blogs I try to read regularly”, which is a blogroll from Bloglines, when I realized that my Bloglines subscription list and my Google Reader subscription list (which was originally derived by exporting the OPML list of feeds from Bloglines) had drifted out of sync with each other.

Well, I thought, this should be simple! I’ll just export the OPML lists from both readers and sort them and then compare using diff or something, and bring them back into sync, and clean them up a bit while I’m at it.

No such luck.

Bloglines’ OPML file uses outline text= for specifying folder names, and outline title= for individual subscription names. Google’s OPML file does the reverse.

Bloglines puts all the data for a single subscription on a single line. Google separates elements onto different lines.

Here’s an example:

Bloglines:


<outline text="Blogs" > <outline title="Accidental Pedagogy" text="Accidental Pedagogy" htmlUrl="http://accidentalpedagogy.typepad.com/accidental_pedagogy/" type="rss" xmlUrl="http://accidentalpedagogy.typepad.com/accidental_pedagogy/atom.xml" />

Google:

<outline title="blogs" text="blogs">
<outline text="apophenia" title="apophenia" type="rss"
xmlUrl="http://www.zephoria.org/thoughts/index.xml" htmlUrl="http://www.zephoria.org/thoughts/"/>
Guess it's time to break out some Python.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s