Export database as a HTML page (1 Viewer)

Joco1114

Portal Member
December 2, 2010
21
4
I would like to export my database to my site as a simple HTML file.

An idea:
I realized there are two functions (actions) in the scraper scripts: MovieDetailsFetcher and MovieCoverFetcher. I suggest a third one: MovieExportTemplate or similar. That means the following script is a template file to export database as a HTML file. But its working with the stored database, not from the internet. It needs some special function, for example loop for actors, for alternate titles, etc. Finally it would be generate a HTML (+Javascript) file, with folders with covers in it and with images for the exported page.

What do you think? Is it possible or not? I can offer my knowledge as a HTML programmer or a brainstormer. :)

PS: sorry about my poor English... I hope it was understandable. :sorry:
 

fforde

Community Plugin Dev
June 7, 2007
2,667
1,702
44
Texas
Home Country
United States of America United States of America
I think you are trying to reinvent the wheel! We have Moving Pictures Social in Beta right now which you could sign up for. This creates a movie list on the Moving Pictures Social domain, the whole site is very slick! And if you would rather have something on your personal web server there are various scripts and mini programs that have been posted on the forums to generate this. You could most likely grab one of those and go. The first one that comes to mind is MovingPicturesXML.

As far as the scraper engine goes, it is really not designed to be a multipurpose scripting language. The functionality is specifically tailored to retrieving and parsing data from the internet. Expanding the toolset available to script writers to make it an effective HTML writer would require a bit of work and is way outside the scope of what the scraper engine is meant to do. We plan to add export functionality in the future, but it will almost certainly not use the scraper engine.

If you are not happy with existing solutions and you really want to code something yourself, I would suggest you check out a more general purpose scripting language like Python. With this you will have much more flexibility, nicer looking code, and you could directly peer into the Moving Pictures database with pysqlite.
 

Users who are viewing this thread

Top Bottom