This was just what I was looking for! However I do have a question or two. I was wondering how I can parse the achievement pages? I need to grab the Cooking, First Aid and Fishing level of my members and yet I can't seem to get it to work by back engineering the scripts on here.
This is what I have tried to do so far.
First I created a new condition in the function pull_xml If you insert the c=132 into the URL it will take you to that characters info page outlining certain achievements.
Code:
elseif( $this->query === 'skills' ){
$url = 'http://www.wowarmory.com/character-statistics.xml?c=132&' . urlencode($this->server) . '&n=' . $this->guildie;
}
After that I tried creating the call to that function:
Code:
$armory = new armory('skills', 'steamwheedle cartel', 'fallen legacy', 'xtsu', NULL);
$xml = $armory->pull_xml();
foreach($xml->category as $catg)
{
$catg = reset($catg);
echo $catg['name'],'<br />';
}
The above was to see if I could pull and list the different categories but no luck. I am not too sure what to try next and am seeking advice. Like I said I would like to be able to pull the numbers off this page.
Here is a hard link to the XML page that blizzard puts out and that would need to be parsed.
http://www.wowarmory.com/character-s...+Cartel&n=Xtsu