Migrate to your Wordpress blog using Ruby and Atom

Recently, I have encountered a dilemma regarding my personal blog. I have it hosted by a local blog host provider. It was great staying there and blogging there when there was still this very tight-knit community of bloggers. From time to time, we'd all meet up and just express our thoughts in person. The providers were really great with hearing out their users' thoughts, wishes including rants and raves. They were really good with what they were doing (up to some point in time).

...

Now, being the Ruby lover that I am, I decided to write a Ruby script that would scrape my content and push it onto my new Wordpress blog. There are a couple of assumptions/caveats for this script:

  • You can scrape off content from only YOUR OWN BLOG. Please don't use this to steal other people's content. I am not liable for any online content theft from the use of this script.
  • You must be able to understand the structure of the blog you are scraping. You should know where the "excerpt", "main body", "post date", "post author", etc. info are located from the markup/source of the blog you are scraping.
  • You must have the credentials of the blog where you want to push the scraped content.
  • If in case you need something else, or some more tweaking to this script, you must know Ruby, or maybe you can drop me a line and I'll see how I can help you.
  • This script uses Atom tools, although there are other gems available, this is what I chose to use.
  • Turn on Atom publishing in your Wordpress blog.

...

Read the rest of this entry

Hi, I've been busy you know. wink If you don't know yet, this site and my blog codes are hosted in . I recently moved to Git and found that they have support for private Git repositories. Below are details of my last git push.

Maricris S. Nonato on 26 Mar
Commit: e734bd6878629223c5067326471d7ec0aac7d6e4

Updated display of ads and popular content
  • @iCreate_JB that is sooo true 2010-07-30
  • My eyes hurt so baaaadd. sad 2010-07-30
  • Check out: "Giles Bowkett: Secrets Of Superstar Programmer Productivity: Flow"( http://twitthis.com/oqsu..2010-07-30
  • This is to true right now http://skitch.com/t/7p8.. 2010-07-30
  • @iCreate_JB haha that's funny. Well, I'm kinda burned. Just as how you might be as well. Lol 2010-07-29
  • @iCreate_JB hahaha. That's a good one 2010-07-29
  • LivingLife :: A trip down memory lane: Sa totoo lang, wala kang dapat ipagmayabang dahil wala ka pa sa kalingki... http://bit.ly/aqSY4I.. #fb 2010-07-28
  • I never knew I had these much socks. Such an imbalance inside my closet! 2010-07-28
  • Was able to eliminate more trash from the room. Congratulations to myself! 2010-07-28
  • RT @zweinullweb: 30 Cool One-letter Logo Designs: http://bit.ly/9WkEgO.. 2010-07-28
  • I can't believe some of the stuff I rescued from Ondoy are still damp. Sheez 2010-07-28
  • God is a miracle worker. Let's not stop believing in his works. #fb 2010-07-26
  • RT @JeromeGotangco: ang tigas talaga ni Manong Johnny... 2010-07-25
  • LivingLife :: Change is imminent: I open my serious post with a very light and easy title.  But I cannot stress... http://bit.ly/bskTEd.. #fb 2010-07-25
  • a major earthquake is coming to Manila, please help pray to reverse it 2010-07-25
  • RT @jasonderulo: The Philippines is an AMAZING place... On the complete opposite side of the globe (from where I'm from) & I feel soo we ... 2010-07-24