View Single Post
04-07-15, 03:38 AM   #10
elcius
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Sep 2011
Posts: 75
As I understand it, this method would require me to visit each of the pages manually. As there are over 700 player-ownable pets, this would take a while.
nope, all the abilities and possible breeds are listed on the page you linked, if there is info not available in the list-view (nothing relevant that i can see), you can use their jQuery to handle the requests:
Code:
var a = g_listviews.petspecies.data;
var n = a.length;
for(var i=0;i<a.length;i++)(function(i){
	$.get('http://www.wowhead.com/npc='+a[i].npc.id, function(html){
		console.log((--n)+' remaining');
		// pattern match the html for whatever.
	});
})(i);
takes less than a minute to go through the page you linked.
  Reply With Quote