User:Vasi/Scripts/Search odds sum

From The Urban Dead Wiki
Jump to navigationJump to search

This is a perl script which parses a Search Odds subpage, summing the various search results, and outputting a tabular summary. The output can then be used to generate charts like the one here.


View the code


In order to use this script, the raw wikicode corresponding to the search results must be pasted into the __DATA__ section. The $items heredoc must also be modified to reflect the types of objects found. Note that this script is quite fragile with respect to the exact layout of the search results table, any changes of syntax will likely break it.