How can I convert (move) individual HTML webpages in bulk into Drupal Forum?

How can I convert (move) individual HTML webpages in bulk into Drupal Forum?
What I have is just the 1000s of html pages which consist of question and answers. Now how can I move then into into Drupal Forum.
This is how my question/answer html pages looks like this:- drive.google.com/file/d/0B4RFn3PmjNy9YTNkbE5mejBfV1U/view?usp=sharing

So now what I have to do exactly? I just want to move the questions and answers. Don’t want user login details or anything else. I have thousands of pages like this

The question title is in between the tags < title> and < /title> (also present in between < h1> and < /h1> tags).

The question description is in between the < div id=”summaryDescription”>

All the answer descriptions are in between div classes < div class=”postContent”>

Only these above 3 are I needed [I don’t want the user informations, it can be null or just from the account named anonymous).

Now how can I create the php script (I tried reading this simplehtmldom.sourceforge.net/manual.htm but I can’t understand any).

How can I make an sql query out for all those files? Then how to send them to server via shell?

Please guide me. Thanks in advance.


Source: https://www.drupal.org/taxonomy/term/1/feed

Leave a Reply