WikiGen  

Bludwyng's Sandbox
This is a scratch page for me to work out ideas for a program I would like to write.

WikiGen is a database with the ability to maintain data for games that are pure wiki, such as Aion, Runes of Magic, and Vanguard.

Wikigen will:

  • store all the data for a gamebase.
  • download current wiki pages, slicing the data out and comparing it to current records, reporting when a wiki page is newer than the last upload date, and auto-updating the database when the data is newer than the stored data. When a new game is added to WikiGen, it should know how to go grab all pages currently in the wiki, thereby creating records in WikiGen. This could be done by reading the top-level category for the gamebase and crawling the site from there.
  • Generate wiki pages from the database and a template that has been created specifically for each page type.
  • upload the new wiki pages.

Of course, the generated page should have some HTML comments in it explaining that the page was auto-generated, when and by whom.

When a record edit is started, WikiGen should immediately grab the current version of the page from ZAM, warn if it is newer than the last uploaded version, and update the stored record after prompting. After editing the db record, it should generate and auto-upload the new page.

In order to accomplish auto-uploading WikiGen will need to store the username and password, locally. A secondary account should be used for this, which should be identified as a bot, such as username: BludwyngWGBot

WikiGen should include a log parser for gathering information from those games that have logs.


Apparently, http_get cannot fetch a page's content through a handler, such as wiki.html

I can do http_get http://www.zam.com/wiki/WikiGen but not http_get http://www.zam.com/wiki.html?e=WikiGen

If WIkiGen cannot both get and push pages it is not gonna work. No way am I gonna write it to carve the data out of a fully rendered HTML page. I need the edit page.

It may still be worthwhile to write WikiGen as a log parser and NEW page uploader. I could still test to see if the page exists, and display the new data for existing pages.

This page last modified 2009-07-10 07:02:56.