Does anyone know of a way to import all blogger items into Drupal, from someone that is now using Blogger and that wants to move to Drupal?

Thanks in advance,

Zen

Comments

Red’s picture

I'm sure this person has moved on since last August, but has anyone found an efficient way to migrate from blogger to drupal?

fernao’s picture

I've found this page, of a very nice egyptian guy, who makes migrating just easy!

http://www.eglug.org/node/1654

emogirl’s picture

thanks. just what i needed ;)

mcduarte2000’s picture

Any ideas?

Junyor’s picture

I originally moved from Blogger to MovableType, then from MT to Drupal. MT comes with good documentation for migrating from Blogger. You can then use James Seng's script to migrate from MT to Drupal.

If you can come up with a better way, please document it at http://drupal.org/book/view/271.

mcduarte2000’s picture

Thanks!

Miguel Duarte

Webmaster of: Lisbon Guide & Love Poems

mahir’s picture

Mahir Sayar
puccaso.com

i dont have a mt account on any server
not that i know off
i havent used my blogger.com account much
cos its c*rap.

so now i have set up drupal at my home
and i want to tranfere the blogger.com stuff to drupal

how do i do that?

lambert’s picture

We have around 10,000 posts over 3 years and 8 bloggers....

andre75’s picture

Just tried it and it worked. For some reason it messed up the order of my articles. I am going to try it again and follow the readme step by step.

Andre
-------------------------------------------------
http://www.opentravelinfo.com
http://www.aguntherphotography.com

miopa’s picture

to add something not mentioned in the readme

in blogger: turn off navbar in template, disable atom feed, disable archive and post pages (without hiding comments - disable javascript) in the archiving section. This way you get only the import script without all the static pages.

Without this the republishing of the blog with 250 posts and 1000 comments hanged.

--
http://bagra.org

jivyb’s picture

This is what I just did and it was really straightforward: Wordpress just came out with a new version (2.0) that has an automatic Blogger import tool built right into it. So I just did a clean WP install, clicked on their Import tool, put in my Blogger login info, and it did everything else automatically. Then I plugged my wordpress rss feed into drupal's aggregator2 module and imported everything. You can set agg2 so posts import as drupal nodes and matches your categories to drupal taxonomy names.

caveat: The wordpress import tool choked about halfway through but I just needed to log out, log back in and start it again. It didn't take much longer, though and it all went through fine....I thought it was a lot easier than using a separate import script.

geraldgrogan’s picture

I attempted to use this method, but the Blogger Import feature requires CURL to be installed on your WEB HOST PHP server. I tried this method on my local instance of Wordpress 2.3 and the new Blogger Importer feature mentioned that supposedly automatically imports Blogger posts into WP did not even show on the admin screen. I am not sure on how to proceed at this point.

I did find this posting about another possible work around instead of installing CURL.
This method should work without installing Curl
http://www.webbleyou.com/2006-09-14-how-to-move-from-blogger-beta-to-wor...

reeses’s picture

I managed to cobble together something similar to import blogger entries into Drupal 4.7-pre. The directions are basically the same, although the php template differs in that it emits two sql statements.

Also, it might be smart to use date +"%s" -s xxxxxxx to sanity check your dates in the SQL as the timezone conversions might be a little annoying if that sort of thing bothers you.

heydg’s picture

hey everyone fyi i was just able to import 74 blogger posts into drupal 4.7 running locally. here's what i did, after learning from a few tries:

* in blogger's publishing settings, i chose show X posts on main page (where X > total number of posts + 1)
* choose atom feed format in blogger's feed settings (the rss option maxes out at say 20 items)
* republish
* if you're publishing your blogger site to your own ftp server (you may be foiled by something if not), download a local copy of atom.xml
* (optional) edit such things as relative urls; find/replace whatever (i.e. <div xmlns="http://www.w3.org/1999/xhtml"> though be careful to delete correct closing divs)
* if you're importing locally put the edited atom.xml in localhost; if not upload and replace the online file

after installing aggregator2, create new content type 'feed' and...
* define the basics. under feed options check only 'publish new items' and 'Create GUID for items'.
* promote all items if you wish
* By default discard feed items older than: never
* item date source: feed
* Show "full article"/"visit site" link: do not display
* i did not categorize my imported posts b/c i don't have a taxonomy yet
* i used 'full html' input format to allow for img tags
* other options as you wish

i found that after creating the feed no feed items were imported. so i hit refresh items. generally it times out in batches of 19 -- just keep refreshing until you get them all! the error msg when timing out mentions a line in the agg2 module re sleep_interval. i contemplate hacking this but repeatedly refreshing sufficed. you can increase per item timeout to 5 secs in the agg2 module settings.

gumbotron’s picture

...but I'm having trouble because Aggregator2 says it's for 4.6 and throws up all kinds of SQL errors after I install and a blank white page when I try refreshing items (I'm on 4.7, btw)

I even installed Agg2 head and got to actually create the feed, but nothing happens because there are 2 tables missing... aggregator2_feed and aggregator2_item.

Anyone know how to get around it?

jgeiger’s picture

I recently wrote a Python script to do this. It's pretty simple but it was written to let you grab all your blogger posts (including crawling through the archives) without having to republish or go through one by one. I was able to import two sites into a Drupal 4.7 instance without too much trouble.

You can find it at http://www.nother.net/jgeiger/code/blogger2drupal.py.

Jason

KrisBuytaert’s picture

I can't download this file anymore it seems. ..

Any other locations .. preferreably also a 5.X working version ..

patrick@drupal.kikkum.net’s picture

I've also written a little Python script, but this one uses the files posted by Blogger, preferably on your own server. It then directly inserts the data from those files into your Drupal MySQL database. For this it uses an XML template that you'll have to use in your Blogger weblog.

It also converts comments and it preserves date/time information for both posts and comments. User information for posts (though not for comments) can be converted to Drupal too; for this to work the Blogger users that are to be converted must already have a Drupal account.

This is my Blogger weblog and here is the Drupal version with the imported Blogger posts (both Dutch). I've set up a site over here where you can find the script, the XML Blogger template and a guide.

If there's any problems or if you have a question you can always try and contact me (see the guide) and I'll see what I can do.

geraldgrogan’s picture

Will this script work for Drupal 5.x?

wwwoliondorcom’s picture

Message from author of Blogger to Drupal importation script:

I'm sorry, but I really haven't a clue if it'll still work with the
latest Drupal. I'm not planning on updating it anymore, as my
Drupal-plans have been put on hold due to Wordpress being more suitable
for my purposes. You're welcome to use the script as it is now though
and edit it so it'll work again. If you do, please let me know, I'd love
to see my little piece of work develop ;)

By the way, I wanted to post this on the Drupal website, but my username
doesn't work anymore (it was coupled to my own Drupal site, which is now
offline). If you want to post this reply there, be my guest.

Cheers,
Patrick

Shane Birley’s picture

What is the above for? Are you indicating one is able to import via Atom?

---
Shane Birley
Left Right Minds
http://www.leftrightminds.com

---
Shane Birley
Left Right Minds
http://www.leftrightminds.com

wwwoliondorcom’s picture

Hi,

Can you tell me what is the best way to do among those explained above ?

Anything new since ?

It it possible to import to Drupal 6 or need to set up a Drupal 5 website ?

Thanks a lot !

shushu’s picture

Google Blogger added few export feature via their new Draft interface.
So now I got a very nice XML (in ATOM format, I believe).

Well, now what ?
What would be the easiest way to import it to Drupal ?

Regards,
Shushu

nbz’s picture

Feedapi module has an option to make nodes out of web feeds. That is probably a good option to import the pages.

http://drupal.org/project/feedapi

HS’s picture

Blogger now has a neat way to back up or export your Blog - Atom-formatted XML file for easy backup. Can someone please assist on how I can import this XML file into a Drupal Blog?

adamfairhead’s picture

I had to transfer a Blogger blog to Drupal for a client, so I thought I would share my end-solution here.

For starters, there seems to be no module to date that can handle the task. WordPress, however, offers a means of importing Blogger content into itself. Unfortunately, a WP.org Blogger import is notorious for failing. The importer in WP.com works, however. Here's my solutions to date:

- Go into the Blogger Settings and Export your blog to the XML (Atom) file it provides.
- Create a WP.com account.
- Create a temporary blog within your WP.com account.
- Go into the WP.com Site Admin section, and select Tools from the panel down the left-hand side.
- Select "Import" from the expanded menu Tools item from the menu down the side.
- Import the XML (Atom) file from Blogger.
- Export your WP.com blog.
- Install the the wordpress_import module (http://drupal.org/project/wordpress_import) to your Drupal site.
- Import the file that WP.com created on Export into this module.

This should get you the Blogger data into your Drupal install. I exported from WP.com to a WP installation, then out of that into Drupal. I'm assuming that that extra step isn't necessary.

HS’s picture

@FC

Thank you!

Is this solution viable for a multi user blog? I have a few bloggers, but I just need my Blog imported - I am the Super user.

Can the Super user/admin import WP blogs for other users too?

Or is the module designed for single user Drupal blogs?

Thanks again!

onion’s picture

I've been trying this but no XML options are showing up for me in the Wordpress import part. It looks like they may have switched their setup around. When I try to import straight from blogger into WP, no posts show up.

Any ideas out there in importing a blogger XML straight into drupal blog nodes???

skessler’s picture

Just wondering what you did to make the redirect.

Thanks,
Steve

Steve Kessler steve@denverdataman.com
Denver DataMan - http://www.denverdataman.com

nco71’s picture

Hello I m using wordpress_import plugin.

I exported an blog-xx-xx-xxxx.XML from blogger and then I used a tool provided by google that directly transform the blogger file for worpress : http://blogger2wordpress.appspot.com/

You then get a wordpress-wxr.xml file which you can import on Drupal

I tried importing the wordpress-wxr.xml file on worpress and it worked perfectly fine.
However when I tried to import that file into Drupal with wordpress plugin I only got the author created but none of the blog articles.

I m not sure why.

dunwich42’s picture

I tried the http://blogger2wordpress.appspot.com/ link and then used the Drupal wordpress import and it looks fine!
Thanks for the tips!

roseslug’s picture

I used this method as well, but found that none of my tags migrated. Tags are pretty important to me, so I spent the day finding a workaround:

1. Go into the Blogger Settings and Export your blog to the XML (Atom) file it provides.
2. Go to http://blogger2wordpress.appspot.com/ and convert that XML file to Wordpress XML file.
3. Now, for TAGS...here's the problem. The conversion to the WP file takes Blogger LABELS, and calls them CATEGORIES. WP also has taxonomy called tags, but Blogger labels don't get converted to tags, and thus on import to Drupal, the labels (which now are 'categories' in the XML file) don't get mapped to the Drupal tags. Ugh. Solution:

Option 1 (if you know all the tags you have, and they're not too plentiful):
- Open the WP XML file (i.e., the result from converting the Blogger XML file to WP XML via blogger2wordpress).
- Around line 10 is a line <wp:base_blog_url>http://yourname.blogspot.com/</wp:base_blog_url>
- Underneath that line, identify your tags. Each one gets its own line:
<wp:tag><wp:tag_name>FILL IN TAG HERE</wp:tag_name></wp:tag>
- Save the updated XML file.

Option 2 (a bit more unwieldy, but useful for large blogs with tons of tags):
- If you use this route, you won't need to convert your Blogger XML through blogger2wordpress.
- Get a Wordpress account and import your Blogger blog to it. (Google for instructions - there are tons.)
- All the labels will be imported as categories. In your new WordPress blog, go to "Tools>Import" and select "Convert categories to tags".
- Select all the categories and convert them.
- Export the WordPress blog to XML ("Tools>Export"). This is the XML file you'll import into Drupal.

Troubleshooting WordPress XML imports into Drupal:
- Exporting from WP produces an extended XML file that Drupal sometimes doesn't like. To fix the XML file if you get an "invalid XML" upon trying to import to Drupal, find/replace all tags, deleting them. Drupal doesn't need them for the import, and it should clear up the problem.

4. Use the wordpress_import module (http://drupal.org/project/wordpress_import) to import the Wordpress XML file to your Drupal site.

wwwoliondorcom’s picture

Importing Blogger Blog on Drupal 5 Install doesn't work

Hi,

I have tried the Drupal 5 Wordpress import and it says that the posts have been imported but I can't see them anywhere in content, any idea what is the problem ?

Thank you so much.

wwwoliondorcom’s picture

Finally it worked but only as STORY and not as BLOG, but i can't understand why ?

I am the admin (i can create blog) and the settings of STORY and BLOG in content types are exactly the same ?!

Thank you if you know anything !

thebuckst0p’s picture

I recently released the Blogger Importer module, check it out.

wwwoliondorcom’s picture

Thank you so much, i tried your module and it just work perfectly.

Thank you again for the great work.

jimbox’s picture

the module blogger_importer worked above expectations for me. the xml export/import process nicely preserved images and copy.

the only downside is tags were not preserved and included in the drupal taxonomy.

John_B’s picture

The above post is a plug for a commercial service. I used it once to migrate Drupal > Wordpress. Whilst the result did require quite a lot of manual cleaning up, and there was one bug in migrated content I never resolved, the result was not bad, and to be fair rather better than I was expecting. It reduced the amount of work in the migration to an extent which easily justified the modest fee, and I would use it again in an appropriate case (I would not view it as the right tool for every migration). It would be unrealistic to expect the results to be perfect, especially on a mature site. For migration to (rather than from) Drupal I have no experience of it.