Go Back   > Nodiatis Forums > General Discussion > Nodiatis Discussion & Suggestions

Reply
 
Thread Tools Display Modes

Scripting Interaction with Nod to gather Data
Old 10-25-2009, 05:41 PM   #1
Gem Pouch Expert
 
Chrism is offline
Join Date: Jul 2008
Posts: 377
Default Scripting Interaction with Nod to gather Data

Does anyone know if it is possible to write a script to repetitively (e.g. once an hour) request information from Nod servers?

Specifically I would like to be able to request instant clan stats and record them to a file for analysis.

Is this possible (is it even allowable)? If so can anyone point me in the right direction?
  Reply With Quote

Old 10-25-2009, 06:33 PM   #2
Epic Scholar
 
flipynifty's Avatar
 
flipynifty is offline
Join Date: Aug 2008
Posts: 4,529
Send a message via MSN to flipynifty
Default

leet h4x
__________________


omg i wanna sammich nao
  Reply With Quote

Old 10-25-2009, 06:45 PM   #3
Boss Hunter
 
Jonsboyfriend's Avatar
 
Jonsboyfriend is offline
Join Date: Sep 2009
Posts: 119
Default

Yes it is possible Ask Seletchi how to do it. He can help
  Reply With Quote

Old 10-25-2009, 06:46 PM   #4
Temporarily Suspended
 
Sapreaver is offline
Join Date: Aug 2008
Posts: 1,627
Default

It should be a fine thing to do with Scar or w/e just click the clan names and get updates and put it in excel or what ever program you are using.
  Reply With Quote

Old 10-25-2009, 07:05 PM   #5
Epic Scholar
 
zenga's Avatar
 
zenga is offline
Join Date: Aug 2008
Location: Somewhere in Belgium
Posts: 2,085
Send a message via MSN to zenga
Default

Yes that's pretty easy to do. Most languages have a scraping function. For php/perl i recommend curl. There are also commercial tools that can do this for you, google for 'site scraper' and it will spam your nuts off.

As for the hourly logging: cronjobs can do that.

Anyway, i have a similar script running that does this for another site. I can provide you with some example code if you want.
  Reply With Quote

Old 10-25-2009, 07:09 PM   #6
Epic Scholar
 
zenga's Avatar
 
zenga is offline
Join Date: Aug 2008
Location: Somewhere in Belgium
Posts: 2,085
Send a message via MSN to zenga
Default

Quote:
Originally Posted by Chrism
Is this possible (is it even allowable)? If so can anyone point me in the right direction?
possible for sure, and why shouldn't it be allowed? its a static html page that provide this data
  Reply With Quote

Old 10-25-2009, 11:22 PM   #7
Gem Pouch Expert
 
Chrism is offline
Join Date: Jul 2008
Posts: 377
Default

well my thought was scripting the ingame action of right-click -> Clan Admin Options -> Show Clan stats, since the tops list is slightly delayed, but i guess the delay is static so it could be negligible.

Was just concerned with the recent focus on preventing bots/automation that this might be frowned upon, but i'm not trying to do anything malicious
  Reply With Quote

Old 10-26-2009, 05:53 AM   #8
Epic Scholar
 
zenga's Avatar
 
zenga is offline
Join Date: Aug 2008
Location: Somewhere in Belgium
Posts: 2,085
Send a message via MSN to zenga
Default

Ah oki, thats a different thing, well if you want to do it that way you will most likely need to screenie the right click, generate an image and then read it in with an ocr. There might be way to pull the data directly from the applet, but i'm not aware of that.

Still i think you make it overly complex, as all this data is provided in the toplists, which are very easy to grab.
  Reply With Quote

Old 10-26-2009, 09:50 AM   #9
Decker
Guest
 
Posts: n/a
Default

using fraps to get the screenie would be easy to do, all you'd need to add to the script is a keystroke (f10 is default) as it will screenshot just the active game and nothing more.
  Reply With Quote
Reply



All times are GMT -5. The time now is 10:29 PM
Boards live since 05-21-2008