Advertisement
by The Ice States » Sun Jun 30, 2024 8:54 pm
by Trotterdam » Sun Jul 28, 2024 10:48 am
<WORLD>
<HAPPENINGS><div class"error">System Error (eval) at Sun Jul 28 10:39:51 2024.</div></HAPPENINGS>
</WORLD>
by United Calanworie » Mon Jul 29, 2024 4:30 am
by 9003 » Tue Aug 06, 2024 9:17 am
by United Calanworie » Wed Nov 06, 2024 3:14 pm
by 9003 » Sat Nov 16, 2024 11:28 am
by UPC » Mon Nov 18, 2024 6:03 am
by New Rogernomics » Wed Nov 20, 2024 1:54 am
by Trotterdam » Wed Nov 20, 2024 3:24 am
It is not the duty of the NationStates admins to pore over your code and figure out what it does. Complying with the ratelimits is your own responsibility.New Rogernomics wrote:Is this compliant with rate limits, before I take it beyond a testing stage:
by New Rogernomics » Wed Nov 20, 2024 9:26 am
I wouldn’t present something I didn’t already believe was compliant. I posted here out of common courtesy because in the past some things can skirt the rules. So a bit of a harsh response to something equivalent of, “I’m doing this, we cool?”Trotterdam wrote:It is not the duty of the NationStates admins to pore over your code and figure out what it does. Complying with the ratelimits is your own responsibility.New Rogernomics wrote:Is this compliant with rate limits, before I take it beyond a testing stage:
However, I would say that as the nations.xml.gz file is only updated once a day, you should not usually attempt to download it more than once a day, which should be a pretty simple rule to follow, and is so slow that the ratelimit rules that apply to the rest of the API are irrelevant. If you try to download it but fail due to a server/network error, then trying again after a short time is probably fine.
However, I am not site staff, so this is not a binding ruling of any sort.
by Refuge Isle » Wed Nov 20, 2024 4:11 pm
Trotterdam wrote:It is not the duty of the NationStates admins to pore over your code and figure out what it does. Complying with the ratelimits is your own responsibility.
New Rogernomics wrote:I wouldn’t present something I didn’t already believe was compliant. I posted here out of common courtesy because in the past some things can skirt the rules. So a bit of a harsh response to something equivalent of, “I’m doing this, we cool?”
by New Rogernomics » Wed Nov 20, 2024 4:51 pm
Well, I was more referring to Predator, and similar such stuff, where there was an admin review of the code, and in those instances it does become your job.Refuge Isle wrote:Trotterdam wrote:It is not the duty of the NationStates admins to pore over your code and figure out what it does. Complying with the ratelimits is your own responsibility.New Rogernomics wrote:I wouldn’t present something I didn’t already believe was compliant. I posted here out of common courtesy because in the past some things can skirt the rules. So a bit of a harsh response to something equivalent of, “I’m doing this, we cool?”
Mmn, the thing you're asking is no different than what Trotterdam is saying you're asking. Because if we give a response of "cool" or "not cool", we are effectively having to look at your code to determine and report its legality. That's not a service we provide, and it works a lot like asking hypotheticals in the Moderation board. We can look at something out of context and say "go for it", but there's no real guarantee that we can guess how it will adjust later on, or how it will change when being applied to a context we're not expecting.
What I'll say is that if you're pulling a singular page or file one time in a month, that works with any rate limit (including hitting the html site).
by United Calanworie » Wed Nov 20, 2024 5:22 pm
New Rogernomics wrote:Well, I was more referring to Predator, and similar such stuff, where there was an admin review of the code, and in those instances it does become your job.Refuge Isle wrote:Mmn, the thing you're asking is no different than what Trotterdam is saying you're asking. Because if we give a response of "cool" or "not cool", we are effectively having to look at your code to determine and report its legality. That's not a service we provide, and it works a lot like asking hypotheticals in the Moderation board. We can look at something out of context and say "go for it", but there's no real guarantee that we can guess how it will adjust later on, or how it will change when being applied to a context we're not expecting.
What I'll say is that if you're pulling a singular page or file one time in a month, that works with any rate limit (including hitting the html site).
This implementation though is something others have done already probably, taking the daily data dump to run an endorsement campaign dispatch.
by Trotterdam » Wed Nov 20, 2024 6:09 pm
by New Rogernomics » Wed Nov 20, 2024 6:25 pm
I get that. Anything I do code project wise I put up on github eventually and do documentation on, so that months later if I come back to it, I don't pull my hair out trying to figure out what I did.Trotterdam wrote:Also, understanding other people's code (or, heck, your own code when you haven't looked at it for a few months) is difficult, and it's easy to think at first glance that the code looks fine, only for it to turn out to have a hidden problem later (maybe a mistake, maybe even deliberately obfuscated). Even if you're willing to give the code a cursory look, it's risky to say "this is okay" in a way that might be construed as a binding agreement.
by Kractero » Wed Nov 20, 2024 6:29 pm
<ISSUE id="390">
<TITLE>An Unstable Situation</TITLE>
<CHAIN>An International Incident</CHAIN>
<RECAP>Your government’s response to overtures of aggression from the Brasilistanis has been to march the University of Toledoan army in and take out the tyrannical and violent government.</RECAP>
<TEXT>The “intervention” into Brasilistan has largely been a success, but now the nation has devolved into anarchy with no functioning government. International allies and observers are concerned and have asked that University of Toledo clean up the mess it made.</TEXT>
<AUTHOR>sanctaria</AUTHOR>
<EDITOR>sanctaria</EDITOR>
<PIC1>c11</PIC1>
<PIC2>d12</PIC2>
<OPTION id="0">removed for length purposes</OPTION>
<OPTION id="1">removed for length purpose</OPTION>
<WARNING id=-1>Warning: this issue is part of a non-repeatable chain. Dismissing it may permanently lock you out of achieving some banners!</WARNING>
</ISSUE>
by SherpDaWerp » Wed Nov 20, 2024 8:42 pm
Kractero wrote:I believe the issues shard is returning malformed xml for issues that contain the warning tags.
by Trotterdam » Wed Nov 20, 2024 8:44 pm
Do you mean that the id=-1 should be id="-1"? The warning itself looks fine.Kractero wrote:I believe the issues shard is returning malformed xml for issues that contain the warning tags. The warning should be in quotes.
by Flanderlion » Fri Nov 29, 2024 1:30 am
by Vleerian » Sun Dec 01, 2024 11:05 am
Vleerian wrote:Also, could an API endpoint be added that provides the most recent trading card season? Something like
https://www.nationstates.net/cgi-bin/ap ... cardseason
- Code: Select all
<CARDS>
<CARDSEASON>3</CARDSEASON>
</CARDS>
It would help immensely in future-proofing scripts that work with the cards API, especially where a script has to download and digest the cards data dumps on their first run.
by Riemstagrad » Fri Dec 06, 2024 2:01 am
by SherpDaWerp » Fri Dec 06, 2024 2:33 am
Riemstagrad wrote:Request: An API shard to track the easter eggs a nation allready has.
Today it is not possible to track wich easter eggs you allready found, although it is obvious that the game somehow keeps track of this.
So: An API shard that returns the corresponding issue numbers of the eggs that a nation found would be a nice thing to have.
by Kractero » Sat Dec 07, 2024 2:20 am
Riemstagrad wrote:Request: An API shard to track the easter eggs a nation allready has.
Today it is not possible to track wich easter eggs you allready found, although it is obvious that the game somehow keeps track of this.
So: An API shard that returns the corresponding issue numbers of the eggs that a nation found would be a nice thing to have.
Advertisement
Users browsing this forum: Cappanoole, Cyzon Galactic
Advertisement