Title: Importing myspace html dump
Last modified: August 31, 2016

---

# Importing myspace html dump

 *  Resolved [eivind1984](https://wordpress.org/support/users/eivind1984/)
 * (@eivind1984)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/importing-myspace-html-dump/)
 * Hi!
 * I was looking around for a plugin that could easily import the myspace dump files
   that myspace now offers of old, deleted myspace blogs. They consist of a zip 
   file with a single html files for each entry, and an xml-like structure in html-
   format, with a table with labels and content in different td’s. Unfortunately,
   none of the td’s are labeled.
 * Still, I managed to tweak your plugin to handle this, and since I couldn’t find
   any other information on this, I figured I would submit the tweak here in case
   anyone else is looking to do the same.
 * In the settings, I told the plugin to set the content to td with no attribute
   or value. This would make it set the content to the first td, which of course
   makes no sense.
 * Then, in the file html-importer.php, on line 521, I changed this:
 *     ```
       $my_post['post_content'] = $content[0]->asXML(); // asXML() preserves HTML in content
       ```
   
 * to this:
 *     ```
       $my_post['post_content'] = $content[7]->asXML(); // asXML() preserves HTML in content
       ```
   
 * That makes it grab the content of the eigth td in stead of the first.
 * To set the correct date for the entries, I set the custom field for date to match
   on td with no attribute or value.
 * Then I changed the line 485 from this
 *     ```
       $date = strip_tags( $date[0] );
       ```
   
 * to this:
 *     ```
       $date = strip_tags( $date[3] );
       ```
   
 * Which, as above, makes it get the date from the fourth td in the page.
 * So, that way the hundreds of old, unsorted myspace blog entries got neatly sorted
   in a wordpress blog.
 * Thanks for a great plugin and making the process a whole lot easier!
 * All the best,
    Eivind
 * [https://wordpress.org/plugins/import-html-pages/](https://wordpress.org/plugins/import-html-pages/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Stephanie Leary](https://wordpress.org/support/users/sillybean/)
 * (@sillybean)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/importing-myspace-html-dump/#post-7355115)
 * That’s great! Congratulations on getting your stuff out of MySpace!

Viewing 1 replies (of 1 total)

The topic ‘Importing myspace html dump’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/import-html-pages.svg)
 * [HTML Import 2](https://wordpress.org/plugins/import-html-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/import-html-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/import-html-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/import-html-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/import-html-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/import-html-pages/reviews/)

## Tags

 * [html](https://wordpress.org/support/topic-tag/html/)
 * [Import](https://wordpress.org/support/topic-tag/import/)

 * 1 reply
 * 2 participants
 * Last reply from: [Stephanie Leary](https://wordpress.org/support/users/sillybean/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/importing-myspace-html-dump/#post-7355115)
 * Status: resolved