Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

(I just learnt that Yahoo are shutting down Geocities, this is a bummer as I used my account there to host two icons, in the days when Blogger didn't upload gifs. Now those two icons are referenced in every one of my 600+ posts).

Blogger doesn't have a "Find & Replace in all posts" function. I'm wondering about using the API to hack something together, and wondered if anyone has already tried playing with the API, if there are any tips or things to avoid. Also if there isn't a sneaky shortcut (like switching to ftp, doing the replace locally then switching back?).

share|improve this question

migrated from Sep 29 '09 at 11:25

This question came from our site for professional and enthusiast programmers.

up vote 3 down vote accepted

I guess you could export your blog (it's an atom format), make the changes on your computer, and import it again.

share|improve this answer
Sounds quite good, but I don't know if I've got the guts to try that! Can't determine if import will replace or append all the posts. – Benjol Apr 24 '09 at 7:45
I don't know either (never tried). I guess you could always create a second blog as sandbox and give it a try. Let us know of your success... – cadrian Apr 24 '09 at 8:09
...or failure :) [will do, though quite tempted to give the API a try anyway] – Benjol Apr 24 '09 at 10:34
Worked for a blog with 3 posts, brief moment of panic when Import Page froze (F5 fixed that). It won't import duplicates, so you have to delete all first. This is very scary for 630 posts... – Benjol Apr 24 '09 at 10:57
Also note that it 'hid' all my draft posts, so I thought for a moment I had lost them all, but it was just the list filter settings. – Benjol Sep 29 '09 at 9:02

I imagine you could automate this with a python script pretty easily. It's just http forms to edit blogger right? You'll probably need to http sniff your cookies and headers and then just duplicate it all using urllib2. Figure out how cycle through all your blogger blog posts edit pages, grab the text from that input box and then search and replace with python.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .