Some weeks ago I posted a question on how to import HTML data in to SQLite. https://stackoverflow.com/q/60645811/6702758
The original question:
Import multiple html files as separate entries into SQLite
I have a lot of html files that i would like to import into a sqlite database.
- The files are in separate sub-directories.
- The directories are named by title.
- The html-files are all named index.html.
Like
rootdir/title_name/index.html
I would like to have three columns, 'id', 'title' and html. Where 'title' is the name of the parent directory of the html-file.
Is there a neat way to import it all in one script or query without first needing to rename files or directories?
Almost instantaneously (within 3-4 minutes) my question was downvoted, then closed, and finally deleted. Since the downvote was very quick I suspect there are some very obvious faults.
Unfortunately I can't tell what those faults may be. Is it the way I presented the question, the scope, lack of data details or history, or something else?
It would be helpful if you could point out to me how to improve my questions.