On Dec 7, 9:57 pm, Ben <[EMAIL PROTECTED]> wrote:
> I want to open up a blog quickly using a hosted blog system, eg.
> blogger, livejournal etc.
>
> Some time in the future I want to extract the data (posts and
> comments) out of the blog and convert it to my own system (probably
> written in django, or using some other system).
>
> What hosted system will be easiest to extract the data from in the
> future (I'm happy trying to write code to talk to database APIs, but
> would prefer not trying to automate page scraping).
>

I've been meaning to put some stuff up too and shared your concerns.
I'm trying out blogger (google).  There is a RESTful api for uploading
and pulling down articles and also comments (I think).

http://code.google.com/apis/gdata/overview.html
http://code.google.com/apis/blogger/

I found the docs a bit confusing, but I've tested it using curl.  eg
for POSTing a new article (something very roughly like this):

curl -H "Authorization: GoogleLogin auth=$Auth" \
     -H "Content-Type: application/atom+xml" \
     -d "@example_post.xml" \
     https://www.blogger.com/feeds/$blog_id/posts/default

You need to authenticate and get an auth token and know your blog id.

I'm guessing wordpress has got similar.

--
Daniel Bush
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to