Plan: Wiki Bot

Many companies now have Wiki’s.  A lot of wiki’s can do with a nice clean-up bot to do maintenance.  So the plan is this:

Write a wiki bot.

  1. Go from a specified page.

  2. When visiting a page

  3. Run rules on the page for formatting - RegEx replace

  4. If nothing is done, go to the next url

  5. Once a certain threshold of edits are reached per day, stop (did enough damage for one day - this also restricts the amount of wiki-recent-changes everyone sees every morning.  If the bot did 300 edit overnight people will miss the real edits)

  6. Make a list of the vist schedule.

  7. If there are no links, go to the home page and grab 5 random links.

  8. Keep this schedule in a section on the user’s home page.

  9. Do one page, then update the home page with the visit schedule.

  10. User can update schedule.

Thoughts:

  • Haywire bots butchering the wiki
  • Authentication
  • Accessing the wiki via web service interface (if it has one)

Discussions