Retrieving stats from a website

13 views
Skip to first unread message

Markus (Addictive Gaming)

unread,
May 15, 2012, 5:19:13 PM5/15/12
to app-inventi...@googlegroups.com
Hey guys,

I would like to make an app for a game called crossfire..
I would like help on how I can retrieve people's kills, deaths etc from a stats page by typing their name. Example here any help on how I could do this in AI would be much apprieciated!

Thank you!

PS: I have posted this in Coffee shop but hopefully someone will answer me here :)

scottfromscott

unread,
May 22, 2012, 3:09:14 PM5/22/12
to app-inventi...@googlegroups.com
If it is allowed by the web page to use the GET method, you might start with something like this:

<td class="style4">
<input name="ctl00$tb_playersearch_charname" value="Imortal" maxlength="12" size="12" id="ctl00_tb_playersearch_charname" tabindex="33" class="textbox" onfocus="document.getElementById(&quot;ctl00_hf_from&quot;).value='player'" type="text">
</td>

extracting the $tb_playersearch_charname and using an input value for the value (Imortal in this case) you may be able to use the Web component to GET the resulting web page then sift out the information by defining headers, data type, etc. that I don't really understand
or you may be able to use the Web page's url (http://clan.z8games.com/playerlist_cfs.aspx?search=1) to query for the parameter
tb_playersearch_charname=Imortal, then parse the result if it supports that type of query.
---
Reply all
Reply to author
Forward
0 new messages