5Sep2009

Delicious to WordPress importer

En: Wordpress

[es]

Un importador de entradas para Delicious.

[en]

deliciouswpDisclaimer: I’m not a PHP programmer. While I’ve tested the importer I can’t guarantee that it’ll work in your particular hosting configuration or that it won’t corrupt your data or kill your dog. Always backup before trying out something like this.

This importer uses the XML data that the delicious API produces for importing posts into WordPress. Heavily based on the RSS importer code included in WordPress.

What it does

Import Delicious XML

  • It uses the title of the link as the post title.
  • It can interpret the tags from Delicious as either Categories or Tags.
  • It interprets the ‘Notes’ field as the post content.
  • It adds the link to the post content in a paragraph with the class ‘delicious_post_link’. Example: <p class="delicious_post_link"><a href="http://google.com">Google</a></p>

Notes

  • If you choose ‘Tags’, the posts will default to the Uncategorized category.
  • It uses SimpleXMLParser so the XML file has to be well formed. It’ll transform & to &amp; but other characters could cause the script to choke. If it does choke, it’ll show the offending word/character so it’s easy to correct the error.
  • It eats the linebreaks from the Notes field. It shouldn’t be a problem as the XML export file doesn’t seem to respect them either.
  • It depends on the server but try to upload files of reasonable size.
  • It imports all the entries present in the XML file, including ‘private’ and ’sent’ ones. Remember to delete them from the XML file if you don’t want them in your blog.
  • I can’t provide support for this importer. I’m not a php programmer. Install at your own risk. Remember to backup.

Download

Delicious to Wordpress Importer v0.1

How to Install and Use

Get your Delicious XML file from here (you have to login) and save it somewhere. It may take a couple of refreshes before it works.

Unzip the downloaded importer and upload it to /wp-admin/importer/ folder. A ‘Delicious’ entry should appear in the Tools > Import sub-section of the administration panel. Follow the on-screen instructions.

Etiquetado como: , , ,