Plugin request import html files

Creating and modifying plugins.
Post Reply
Guest

Plugin request import html files

Post by Guest »

For about eight months I've been writing a blog on my site. It was simply html text tossed onto separate pages on my site. Now that I'm up and running on Serendipity Blog, I want to import all those pages into my Serendipity Blog??

Easy? Hard? Heinous? A breeze?
Let me know.
Thanks,
Jeff
Col. Kurtz
Regular
Posts: 450
Joined: Thu May 26, 2005 10:43 am
Location: Bonn, Germany
Contact:

Post by Col. Kurtz »

The reason that keeps me from using s9y from my own diary is something similar. my diary´s adress is http://boogada2.diaryland.com and I have no idea how to get those old entries to s9y without spending 2 days of copy and paste. any suggestions?


p.s. dont mind the design, it looks better with the surounding (full) website..
Marc
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

The problem is of course, that HTML-only pages are not parsable. They have no common formatting on how Serendipity can now, this is the date, this is the teaser, this is the body, these are the comments, this is the author.

Thus, parsing HTML generically is IMPOSSIBLE. You need to write your own custom importer for that which does Preg-Matching.

Anyone with PHP knowledge can use our include/admin/importers/* importer classes as a foundation and put some regex matching into these importers.

Or turn your HTML into an RSS XML file via XSLT, which can be applied to XHTML pages as well.

Of course this is very advanced. I can offer to write an importer for HTML pages, but I cannot do that for free, because it would only help a single person and not any Serendipity user.

Best regards,
garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply