Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages

www.blogsome.com Forum Index » Questions and Comments

Post new topic   Reply to topic
Blogger import Goto page 1, 2  Next
View previous topic :: View next topic  
Author Message
guictx
Guest





PostPosted: Wed Dec 01, 2004 1:35 am    Post subject: Blogger import Reply with quote

Hi.

According to the WP documentation, blogger import is possible but requires FTP access, which isn't available in Blogsome. Is there any workaround for this or I will have to manually recreate my entries in blogsome?

Congratulations! Blogsome looks great.
Back to top
luckyluke



Joined: 01 Dec 2004
Posts: 6

PostPosted: Wed Dec 01, 2004 3:43 am    Post subject: Reply with quote

isn't the import feature only available for the server based wordpress blog tool and not available to the wordpress web-based blog tool (which blogsome.com is).

correct me if I'm wrong though....

blogsome.com is great by the way! Very Happy
Back to top
View user's profile Send private message
zheaton



Joined: 03 Dec 2004
Posts: 532
Location: United States

PostPosted: Fri Dec 03, 2004 7:31 pm    Post subject: Reply with quote

I'll second the question on imports - I'm migrating from a Blosxom installation, and it would be wonderful if I didn't have to manually recreate my posts.
_________________
I'm no longer a moderator - don't PM me with questions.

Search the forum, check the wiki, and ask smart questions
Back to top
View user's profile Send private message Visit poster's website
john
Guest





PostPosted: Mon Dec 06, 2004 10:55 am    Post subject: Reply with quote

We've looked at porting blogger sites to blogsome and it should be possible and a feature we will offer at some point in the future. We haven't looked into importing bloxsom as of yet, but it has been added to our "to do" list.

Thanks,

John
Back to top
Luhmann
Guest





PostPosted: Mon Dec 06, 2004 3:15 pm    Post subject: Reply with quote

I would like to add another request for import. I am thinking of moving over a blogger account, but I am waiting for this feature.
Back to top
Mark



Joined: 04 Dec 2004
Posts: 1
Location: Birmingham, UK

PostPosted: Mon Dec 06, 2004 11:08 pm    Post subject: Reply with quote

I'd like to register my interest also john. Could I ask whether basic FTP access allowing only .htm/html files be allowed in the interim? I would be happy to write a tutorial for the less technical users of blogsome to help them get a free FTP client and talk them through the process of uploading what they needed.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
zheaton



Joined: 03 Dec 2004
Posts: 532
Location: United States

PostPosted: Mon Dec 06, 2004 11:38 pm    Post subject: A stopgap solution: mtsend.py Reply with quote

If you've got to get a large number of posts into or out of Blogsome in a hurry, and you're technically inclined, I would suggest the free Python script mtsend.py. It's a Python command-line client for the XML-RPC interface of WordPress, which you can use to send and get files from WordPress.

(Nota bene: You must download and configure mtsend.py before any of the following code will work. Wordpress's XML-RPC interface is at http://yourblog.blogsome.com/xmlrpc.php. For everything else, read the mtsend documentation first.)

(Disclaimer: Python runs on Windows, but I don't know the file manipulation commands on that platform. The following code snippets are for *nix and OS X systems only, unless you're using Cygwin. The concepts will still work if you use Windows.)

The only downside to mtsend.py is that the files have to be preformatted with standardized headers - unless you can cook up a script to do it, you'll have to convert the posts manually with a text editor. To get the header format, I would just pull down a random post from your WordPress installation and open it in a text editor:

Code:

./mtsend.py -G 1 > testpost.txt


Once you've got the posts split into individual text files with headers, you can easily use mtsend.py to send the new posts. This is especially easy if you number the files sequentially, starting with "0.txt". In that case, the following script should send all of your posts:

Code:

#!/usr/bin/python

# This script will start at "0.txt" and work up - number your files accordingly!
# Set numposts equal to the highest-numbered file you want to send.
# If you've set the date header, you don't need to
# number the posts in any particular order
# Place this script in the same directory as the posts

import os

numposts=XXX
for i in range(numposts):
    post=str(i)
    os.popen('cat '+post+'.txt | ./mtsend.py -N')


It's not pretty Python code, but it works. I'm not going into obtaining Python/cygwin, chmodding files to get them to execute, or using the shell - if this hint is of use to you, you probably already know how to do these things.

This isn't a perfect solution, but it sure beats copy-and-pasting all of your posts by hand into a web input box.
_________________
I'm no longer a moderator - don't PM me with questions.

Search the forum, check the wiki, and ask smart questions
Back to top
View user's profile Send private message Visit poster's website
Archaos
Guest





PostPosted: Wed Dec 08, 2004 10:35 am    Post subject: Reply with quote

I will also definitly be interested in an easy way to import my blog from blogger.
Back to top
geeaitch



Joined: 08 Apr 2005
Posts: 1

PostPosted: Fri Apr 08, 2005 3:02 pm    Post subject: Reply with quote

yeah, i've just signed up for blogsome.com but i wanna import my blogger stuff too before i actually start using blogsome, which i think i'd really dig.
Back to top
View user's profile Send private message
fluid_motion



Joined: 08 Apr 2005
Posts: 4

PostPosted: Fri Apr 08, 2005 6:38 pm    Post subject: Re: A stopgap solution: mtsend.py Reply with quote

zheaton wrote:
If you've got to get a large number of posts into or out of Blogsome in a hurry, and you're technically inclined, I would suggest the free Python script mtsend.py. It's a Python command-line client for the XML-RPC interface of WordPress, which you can use to send and get files from WordPress.

-snip-


Great stuff! I managed to migrate my entire MT archive into Blogsome following your instructions. Very Happy The only tedious thing was to break down a single MT export file down to its individual posts. But with Python it was quite simple.
Back to top
View user's profile Send private message
zheaton



Joined: 03 Dec 2004
Posts: 532
Location: United States

PostPosted: Fri Apr 08, 2005 7:17 pm    Post subject: Reply with quote

I'm glad that the script helped - I moved from a Blosxom installation to WordPress, and that's how I pulled it off.

Which reminds me, I need to migrate those instructions over to the Wiki at some point so they're easier to find. Any chance you can contribute the Python code you used with Movable Type?
_________________
I'm no longer a moderator - don't PM me with questions.

Search the forum, check the wiki, and ask smart questions
Back to top
View user's profile Send private message Visit poster's website
fluid_motion



Joined: 08 Apr 2005
Posts: 4

PostPosted: Sat Apr 09, 2005 3:27 pm    Post subject: Reply with quote

I am very new at python (actually this is my very first attempt at it) so the code is quite long. But it does the job for me so I don't really care. Razz Note that this code will only work on MT exported file so if your format is slightly different you will need to modify it.

Code:

#!/usr/bin/python

# This script will break down an MT export file into separate files in sequential order.
# NOTE: rename AUTHOR: YOURNAME to the appropriate entry in your MT file

import os

# Folder name to store the converted files. You need to make this directory first
folder="files"
i=0

#name of your MT file
blogfile="mt.back"

def processLine( line ):
   if line != "AUTHOR: YOURNAME\n" :
      if line != "KEYWORDS:\n" :
         out_file.write(line)
         print(line)

f = file(blogfile,"r")
flag=0
post=str(i)
postfile = folder+'/'+post
out_file = open(postfile+'.txt',"w")
for line in f:
   if flag == 0:
      processLine( line )
   if flag != 0:
      if line == "AUTHOR: YOURNAME\n":
         flag=0
   if line == "KEYWORDS:\n":
      flag = -1
      out_file.close()
      i += 1
      post=str(i)
      postfile = folder+'/'+post
      out_file = open(postfile+'.txt',"w")
f.close()


Also XMLRPC does not support comments so I omitted them.
Back to top
View user's profile Send private message
fluid_motion



Joined: 08 Apr 2005
Posts: 4

PostPosted: Sat Apr 09, 2005 3:30 pm    Post subject: Reply with quote

Those who need to export from blogger to MT format can try these instructions:

http://neologasm.org/b2mt/
http://www.sixapart.com/movabletype/docs/mtmanual_importing.html
Back to top
View user's profile Send private message
The Pentavirate



Joined: 22 Apr 2005
Posts: 2

PostPosted: Fri Apr 22, 2005 11:44 pm    Post subject: Import From Another Wordpress Server Reply with quote

My server just died and I thought I'd use blogsome as a substitute. Is there a way to import my wordpress posts from my old server to blogsome?
Back to top
View user's profile Send private message
zheaton



Joined: 03 Dec 2004
Posts: 532
Location: United States

PostPosted: Sat Apr 23, 2005 2:09 am    Post subject: Reply with quote

If you have any way to get your posts into Movable Type export format so they can be read by mtsend.py, you can use or modify any of the scripts above. Unfortunately, I don't know what format your posts are in - do you have individual text files, rendered HTML pages, the raw SQL database itself, or something completely different?
_________________
I'm no longer a moderator - don't PM me with questions.

Search the forum, check the wiki, and ask smart questions
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.blogsome.com Forum Index » Questions and Comments All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum