wowhead scraping will be the easiest option.
for pet data:
Code:
var a = g_listviews.petspecies.data;
for(var i=0;i<a.length;i++){
var p = a[i];
console.log( p.species+',"'+p.name+'",'+(p.abilities||[]).join(',')+'' );
}
for abilities:
Code:
var a = g_listviews.petabilities.data;
for(var i=0;i<a.length;i++){
var s = a[i];
console.log( s.id+',"'+s.name+'",'+([s.damage,s.healing,s.duration,s.accuracy,s.type]).join(',')+'' );
}
shift-f5 for tools (firefox), go to appropriate page and run in the console, you'll get CSV lists, change them as needed.