- Impact
- 21
I have some dirs and html files and would like to parse them into a mysql db.
What I would like to do is pull the directory names into a category table, place the contained files into subtables under each dir. then pull data from the html files into tables. such as the h1 data and body onto seperate tables.
Does this make sense and is this possible?
This is what I want to do in a nutshell:
DIR-HTML PAGES
into:
Category
|
File ID - Title - Body
File ID - Title - Body
File ID - Title - Body
However I have several DIR-and 100's of HTML pages. There is a naming convention of the HTML pages that can be used as the File ID.
If anyone has done this or knows how please point me in the right direction for software or a script.
Thanks.
What I would like to do is pull the directory names into a category table, place the contained files into subtables under each dir. then pull data from the html files into tables. such as the h1 data and body onto seperate tables.
Does this make sense and is this possible?
This is what I want to do in a nutshell:
DIR-HTML PAGES
into:
Category
|
File ID - Title - Body
File ID - Title - Body
File ID - Title - Body
However I have several DIR-and 100's of HTML pages. There is a naming convention of the HTML pages that can be used as the File ID.
If anyone has done this or knows how please point me in the right direction for software or a script.
Thanks.








