Advertisement
by [violet] » Sun Apr 10, 2011 6:44 pm
by Could-Not-Care-Less » Thu Apr 14, 2011 2:40 pm
by [violet] » Sun Oct 16, 2011 5:45 pm
by Unibot II » Sun Oct 16, 2011 6:37 pm
[violet] wrote:New, currently-undocumented API function:
http://www.nationstates.net/cgi-bin/api ... wnations=1
This lists the world's 50 newest nations, from newest to oldest. Anyone using this (or intending to), please let me know if it's useful.
Vocenae wrote:Unibot, you have won NS.
General Halcones wrote:Look up to Unibot as an example.
by Mahaj » Sun Oct 16, 2011 6:52 pm
<Koth> I'm still going by the assumption that Mahaj is Unibot's kid brother or something
Kandarin(Naivetry): You're going to have a great NS career ahead of you if you want it, Mahaj. :)
<@Eluvatar> Why is SkyDip such a purist raiderist
<+frattastan> Because his region was never raided.
<+maxbarry> EarthAway: I guess I might dabble in raiding just to experience it better, but I would not like to raid regions of natives, so I'd probably be more interested in defense and liberations
by Ballotonia » Sun Oct 16, 2011 11:17 pm
Mahaj wrote:Any chance you could make a link to the nations in there? No? Well this is great anyway
by [violet] » Mon Oct 17, 2011 2:04 pm
by NewTexas » Mon Oct 17, 2011 4:58 pm
by [violet] » Mon Oct 17, 2011 8:09 pm
by Unibot II » Mon Oct 17, 2011 8:11 pm
[violet] wrote:An API or web page for newest WA nations wouldn't be hard to add, either; if there will be significant invader/defender implications from that, please start a thread. (I'm guessing no, since well-organized people have little trouble gathering that info already, right?)
Vocenae wrote:Unibot, you have won NS.
General Halcones wrote:Look up to Unibot as an example.
by NewTexas » Mon Oct 17, 2011 9:13 pm
Note: The Daily Data Dumps are always compiled in the current API version—there is no way to retrieve a Data Dump in an older API version format, sorry.
by Unibot II » Mon Oct 17, 2011 9:15 pm
NewTexas wrote:Uni, you better go to the store Dude, there will be some 19.053 billion NewTexans looking for those cookies soon...
Vocenae wrote:Unibot, you have won NS.
General Halcones wrote:Look up to Unibot as an example.
by [violet] » Wed Nov 09, 2011 9:48 pm
by New South Hell » Thu Nov 10, 2011 4:35 am
by [violet] » Thu Nov 10, 2011 5:27 am
name
type
fullname
motto
category
wa
endorsements
gavote
scvote
freedom
region
population
tax
animal
animaltrait
currency
flag
majorindustry
crime
sensibilities
govtpriority
govt
notable
admirable
founded
firstlogin
lastlogin
lastactivity
influence
freedomscores
publicsector
deaths
leader
capital
religion
by New South Hell » Thu Nov 10, 2011 6:03 am
by [violet] » Thu Nov 10, 2011 6:28 pm
by Riemstagrad » Fri Nov 11, 2011 3:43 am
by NewTexas » Fri Nov 11, 2011 5:57 am
by [violet] » Fri Nov 11, 2011 5:17 pm
Riemstagrad wrote:will the extra data like (wcensus, rcensus, notable etc...) be included in the daily data-dump? i think these are more interesting for a daily dump then the never-changing 'firstlogin' and 'founded' and the (for daily-dump) not accurate 'lastlogin' and 'lastactivity'
by Tears » Fri Nov 11, 2011 5:21 pm
[violet] wrote:Fixed those keywords ('deaths' and 'govt').
The "government attributes" one is non-trivial, because they are not generated on their own like that. I can give you the entire sentence, though (e.g. "It is difficult to tell where the omnipresent, corrupt, moralistic government stops and the rest of society begins").
Keywords as of right now:
- Code: Select all
name
type
fullname
motto
category
wa
endorsements
gavote
scvote
freedom
region
population
tax
animal
animaltrait
currency
flag
majorindustry
crime
sensibilities
govtpriority
govt
notable
admirable
founded
firstlogin
lastlogin
lastactivity
influence
freedomscores
publicsector
deaths
leader
capital
religion
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<head>
<title>Oh-oh...</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<h1>Error!</h1><p>Sorry, NationStates has encountered an error. This problem has been logged and will be looked at shortly. If it occurs repeatedly, though, you can help us track it down by telling us what you did to reach this message. Please e-mail <a href="mailto:admin@nationstates.net">admin@nationstates.net</a>, giving this error message, the time and date it occurred, and what you were attempting to do. </p><p>Alternately, you can post this as a bug report in the <a href="http://forum.nationstates.net/viewforum.php?f=15">NationStates Technical Forum</a>. Thanks.</p><h3>Details:
</h3><pre>Can't locate object method "query" via package "No nation name supplied!" (perhaps you forgot to load "No nation name supplied!"?) at /home/nation/public_html/cgi-bin/JClass.pm line 614.
at /home/nation/public_html/cgi-bin/JGConfig.pm line 13
JGConfig::__ANON__('Can\'t locate object method "query" via package "No nation na...') called at /home/nation/public_html/cgi-bin/JClass.pm line 614
JClass::query_real_name('No nation name supplied!', undef) called at /home/nation/public_html/cgi-bin/JClass.pm line 400
JClass::load('Region', undef) called at /home/nation/public_html/cgi-bin/Dynamic.pm line 444
Dynamic::load_regions('Nation=HASH(0x7fcb631f6fd8)', 'HASH(0x7fcb63210360)') called at /home/nation/public_html/cgi-bin/Dynamic.pm line 217
Dynamic::generate_page('Nation=HASH(0x7fcb631f6fd8)', 'nationsharddata', 'HASH(0x7fcb63210360)') called at /home/nation/public_html/cgi-bin/api.cgi line 138
ModPerl::ROOT::ModPerl::RegistryBB::home_nation_public_html_cgi_2dbin_api_2ecgi::handler('Apache2::RequestRec=SCALAR(0x7fcb632ba758)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
eval {...} called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
ModPerl::RegistryCooker::run('ModPerl::RegistryBB=HASH(0x7fcb629b4da0)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
ModPerl::RegistryCooker::default_handler('ModPerl::RegistryBB=HASH(0x7fcb629b4da0)') called at /usr/lib/perl5/ModPerl/RegistryBB.pm line 31
ModPerl::RegistryBB::handler('ModPerl::RegistryBB', 'Apache2::RequestRec=SCALAR(0x7fcb632ba758)') called at -e line 0
eval {...} called at -e line 0
</pre>
</body>
</html>
by [violet] » Wed Nov 16, 2011 5:18 pm
Tears wrote:I found a bug!
I made a simple program to get all the major industries, populations, and economy ratings of the nations in a region. It worked a couple of times so then I decided to see what would happen if I ran it on the North Pacific. On one particular http://www.nationstates.net/cgi-bin/api.cgi?nation=${nation}&q=majorindustry+population+freedomscores , I got:
Advertisement
Users browsing this forum: Dimetrodon Empire
Advertisement