Skip to content

Instantly share code, notes, and snippets.

View martinwheeler's full-sized avatar

Martin Wheeler martinwheeler

View GitHub Profile
anonymous
anonymous / OSRSGEDataFetch.js
Created April 17, 2017 12:23
Simple script to fetch OSRS GE data from their wiki pages.
// Run on a OSRS GE wiki page such as: http://2007.runescape.wikia.com/wiki/Exchange:Abyssal_whip
var prices = jQuery('[data-data]').attr('data-data').split('|'), thisprice, data = [], volumes = [], isSmall = false;
// This loop has been 'borrowed' from their implementation of Highcharts.
// http://2007.runescape.wikia.com/index.php?title=MediaWiki:Common.js/GECharts.js&action=raw&ctype=text/javascript&reviewed=1487971769
for (var i = 0; i < prices.length; i++ ) {
if ( prices[i].trim() ) {
thisprice = prices[i].split( ':' );