Posted by admin on


In order to export the feed, I need to convert the JSON to XML. This isn’t the first time I have needed to look at this sort of problem and so I have created a page to hold my notes. I have put these things together in a python script, and posted it to github, in a repo called ello2rss.
It should be noted however, that the JSON file still documents the GUID using their V1 api which no longer exists and so is useless. It is not possible to translate the V1 link structure to V2, or at the very least, not documented nor available; others might think it worth the arseache but if they don’t want it done I don’t think I am the person to reverse engineer the api and then maintain it.I found these resources explicitly,


And for a specific python problem,

  1. How do you read from stdin in python from stackoverflow
  2. how to filter tags from a string using the re module at stackover flow
  3. using command line arguments and getopts in python

and these two wiki resources, on twitter and tagged xml are probably useful. I have looked quite hard at these conversions before although wordpress may have got in the way.


If one want to write a script, here’s some stuff to help write the XML


And here’s some python hints

  1. Parsing a JSON data block using Python at stackexchange
  4. includes an illustration of using python’s urllib
  5. You need to handle multi-byte characters, I discuss that here; the JSON has non-ascii characters and there needs to be some unicode handling in the code.


Comment ( 1 )

  1. Exporting | wiki . davelevy . info
    […] JSON to XML […]

This site uses Akismet to reduce spam. Learn how your comment data is processed.

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.