Re: import from blogspot
Alec Berryman <alec-93qrncnF8/[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
Matthew East on 2006-04-29 12:24:28 +0100: > > WordPress has instructions [1] on converting; apparently there's a way > > to export blogger/blogspot posts. It should be straightforward to > > convert a dump of the posts to PyBlosxom's post format. > > Thanks for the reply! Once I've followed the instructions in that page, > do you know how to import the posts in PyBlosxom's post format? No clue, never used blogger/blogspot. PyBlosxom's post format is pretty simple - the first line is the post title, lines beginning with "#" set options, and everything else is interpreted with the post parser, which by default doesn't do anything. > I'm conscious that the time/date of modifying the files is taken as > the time of the post, and I don't want to muck up all the timings. I > suppose I could touch the files manually, but if someone has figured > out how to do this before me, that would be quicker :) I suggest you use one of the time/data plugins in the registry rather than using the file's modified time. I use pyfilenamemtime and have been very happy with it - you append -YYYY-MM-DD-HH-MM (date +%F-%H-%M) to the post's filename before the extension and PyBlosxom uses that instead of the file's modified time. > The other way of getting my blogger posts would be to use the xml feed > that it produces, do you know if there is a script around to take one of > these and import them into the PyBlosxom format? I don't believe there is one written. You're going to need to write your own code. If you're not up to scripting a direct converter, I wrote a WordPress->PyBlosxom converter [1]; you could follow WordPress' import instructions and then go from there to PyBlosxom. [1] http://darcs.thened.net/?r=pyblosxom;a=headblob;f=/scripts/wp-to-pyblosxom.py
signature.asc
(application/pgp-signature, 187 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEU1sSAud/2YgchcQRAvNgAJ9dgPZXxXAHVRSJfIpYR71rW6eFXwCgtwSv KVJbpv+NgFz8yZiT7uAZIC0= =r45G -----END PGP SIGNATURE-----