NATION

PASSWORD

Script rules?

Who needs it, who got it, who hands it out and why.

Advertisement

Remove ads

User avatar
East Xibeiguo
Lobbyist
 
Posts: 18
Founded: Dec 09, 2010
Ex-Nation

Postby East Xibeiguo » Wed Nov 09, 2011 11:21 am

So, when does this rule come into effect? I'm eager to start typing up a recruitment bot.

User avatar
Christian Democrats
Postmaster-General
 
Posts: 10093
Founded: Jul 29, 2009
New York Times Democracy

Postby Christian Democrats » Wed Nov 09, 2011 12:15 pm

Cerberion wrote:How are you going to identify the scripts compared to a team of active manual recruiters / message senders?

People don't send messages at regular intervals (e.g., exactly one message every x seconds).
Leo Tolstoy wrote:Wrong does not cease to be wrong because the majority share in it.
GA#160: Forced Marriages Ban Act (79%)
GA#175: Organ and Blood Donations Act (68%)^
SC#082: Repeal "Liberate Catholic" (80%)
GA#200: Foreign Marriage Recognition (54%)
GA#213: Privacy Protection Act (70%)
GA#231: Marital Rape Justice Act (81%)^
GA#233: Ban Profits on Workers' Deaths (80%)*
GA#249: Stopping Suicide Seeds (70%)^
GA#253: Repeal "Freedom in Medical Research" (76%)
GA#285: Assisted Suicide Act (70%)^
GA#310: Disabled Voters Act (81%)
GA#373: Repeal "Convention on Execution" (54%)
GA#468: Prohibit Private Prisons (57%)^

* denotes coauthorship
^ repealed resolution
#360: Electile Dysfunction
#452: Foetal Furore
#560: Bicameral Backlash
#570: Clerical Errors

User avatar
Aurora Nova
Attaché
 
Posts: 81
Founded: Oct 30, 2011
Ex-Nation

Postby Aurora Nova » Wed Nov 09, 2011 12:19 pm

Christian Democrats wrote:
Cerberion wrote:How are you going to identify the scripts compared to a team of active manual recruiters / message senders?

People don't send messages at regular intervals (e.g., exactly one message every x seconds).

To be fair, scripts don't have to be that rigid, either.
“I do not wish to die, but if it comes to that,
to save this land, my people, all the
thousands who are all my children, then so be it.
May God Almighty help us to remain faithful and free.”

~Colonel Muammar al-Gaddafi
“I believe that Palestine is an occupied land
from the Mediterranean Sea to the Jordan River,
and this is the right of the entire
Palestinian people, this land.”

~Sayyid Hassan Nasrallah
Union of Aurora Nova | Union d'Aurore-Neuve
Deus Imperatorque Populusque
A Mari Usque Ad Mare

-------------------------
Anti-Israel · Anti-USA · Pro-Hamas · Pro-Hezbollah · Pro-Gaddafi · Pro-DPRK
-------------------------
My views are often radical, and may offend some people.
Be aware that I will always speak my truly-held beliefs, however offensive or unpopular they may be to others.

User avatar
Nullarni
Ambassador
 
Posts: 1348
Founded: Sep 26, 2006
Ex-Nation

Postby Nullarni » Wed Nov 09, 2011 1:07 pm

East Xibeiguo wrote:So, when does this rule come into effect? I'm eager to start typing up a recruitment bot.


Be sure to send me a copy of your bot. I lack the skills required to write one... :(
Proud founder of the NEW WARSAW PACT. Visitors welcome.

User avatar
Riemstagrad
Ambassador
 
Posts: 1088
Founded: Antiquity
Left-Leaning College State

Postby Riemstagrad » Wed Nov 09, 2011 1:21 pm

to add my concerns:

10 requests per minute is very slow if one wants to log in to his puppets (a login gives me the world rankings of puppets and let's me check if there are issues waiting or if there are new telegrams, and it keeps them alive :)).
the next step is downloading new telegrams, if any (depends on the spamweather of the day, but on average, 4 puppets per day receive telegrams, so that's does not count.
next i want to do issues. that requires me to download the issue-page for every puppets, then answer the issues for every puppet. since i can do 2 issues per day, that means 3 extra request per puppet.

for 100 puppets that means: 100 logins, 300 issue-related requests ==> 40 minutes. i have more puppets, so it will take a really long time.

now, i understand that you want to push people to use the API, but the "login-do-issues"-scripts can't go via the API and are with the proposed restriction of 10/minute severly punished, while they're actually non-violent information-gathering tools.

a bit slower doesn't bother me, 1 per second, or even 1 per 2 seconds seems reasonable while still far from the very fast API.

if issue-answering could somehow be done via the API, everything would be OK of course...



about telegrams: i'm indeed afraid that we're not flooded with spam, because it's costly to flood people with spam today.
when looking in my e-mail inbox, or my good old aluminium mailbox, or in some other games, it seems that we will become flooded with spam when it become cheap to flood people with spam. (maybe with the TG overhaul add a "junk-folder" and require all recruiters to check a 'this is recruitement-junk'-box when sending TG's... but that's another discussion i guess)

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Wed Nov 09, 2011 9:39 pm

I mentioned earlier that I won't require scripters to run slow if you've requested an API but I haven't provided it yet.

Regarding the above scenario, why not read the nation's private RSS feed to check for telegrams and new issues? I think that would give you the data you want in fewer requests. You wouldn't even need to log in until the feed tells you there is something there to process.

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Wed Nov 09, 2011 9:49 pm


User avatar
New South Hell
Spokesperson
 
Posts: 161
Founded: Feb 15, 2008
Ex-Nation

Postby New South Hell » Fri Nov 11, 2011 6:30 am

Thank you for the wcensus shard. In the interests of getting rid of a few more html calls, I'd also like to ask for an API to return the following info for the world: The name of the current ranking, and the number of nations that were ranked by it (that is, how many there are in the list, not including new nations or excluding nations that have CTE'd in the meantime).

I'm not using it now, but I'd also like to be able to get the name of the featured region. This might allow me to prevent future embarrassment when one of my regions is featured and I don't even notice!

It only takes 12 seconds to get this info at the proposed rate maximum, but I could now be getting the rankings of 20 nations in that amount of time...

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Fri Nov 11, 2011 5:12 pm

New South Hell wrote:Thank you for the wcensus shard. In the interests of getting rid of a few more html calls, I'd also like to ask for an API to return the following info for the world: The name of the current ranking, and the number of nations that were ranked by it (that is, how many there are in the list, not including new nations or excluding nations that have CTE'd in the meantime).

I'm not using it now, but I'd also like to be able to get the name of the featured region. This might allow me to prevent future embarrassment when one of my regions is featured and I don't even notice!

I've added a "World API" (see documentation). This what you need?

User avatar
New South Hell
Spokesperson
 
Posts: 161
Founded: Feb 15, 2008
Ex-Nation

Postby New South Hell » Fri Nov 11, 2011 6:12 pm

Sure is. *blows a kiss*

User avatar
Nullarni
Ambassador
 
Posts: 1348
Founded: Sep 26, 2006
Ex-Nation

Postby Nullarni » Tue Nov 22, 2011 2:01 pm

I really hate to gravedig, but are the "proposed" rules that [violet] gave us now law? I would really like to know because I have a secret project that I would like to work on if they are now in effect.
Proud founder of the NEW WARSAW PACT. Visitors welcome.

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Tue Nov 22, 2011 3:42 pm

Just want to run it by SalusaSecondus, then we should be good to go.

User avatar
Nullarni
Ambassador
 
Posts: 1348
Founded: Sep 26, 2006
Ex-Nation

Postby Nullarni » Tue Nov 22, 2011 5:12 pm

Thanks for the response. I eagerly await the result.
Proud founder of the NEW WARSAW PACT. Visitors welcome.

User avatar
Ballotonia
Senior Admin
 
Posts: 5494
Founded: Antiquity
Liberal Democratic Socialists

Postby Ballotonia » Wed Nov 30, 2011 12:06 pm

Just dawned on me, and I wanted to clarify... when these rules go in effect it also ends it being forbidden to use a script to pull information from the NS Forum?

Ballotonia
"Een volk dat voor tirannen zwicht zal meer dan lijf en goed verliezen, dan dooft het licht…" -- H.M. van Randwijk

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Wed Nov 30, 2011 3:33 pm

Who's scraping the forum? And yes.

User avatar
Ballotonia
Senior Admin
 
Posts: 5494
Founded: Antiquity
Liberal Democratic Socialists

Postby Ballotonia » Wed Nov 30, 2011 9:23 pm

[violet] wrote:Who's scraping the forum? And yes.


Right now, nobody I know of. It's illegal at the moment. But it seems that latter part is about to change.

And thank you.

Ballotonia
"Een volk dat voor tirannen zwicht zal meer dan lijf en goed verliezen, dan dooft het licht…" -- H.M. van Randwijk

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Thu Dec 01, 2011 5:50 pm

Sorry, I misread your original question as "ends up being forbidden." I don't want forum scrapers; we can't service them. Won't be supporting those.

User avatar
Solm
Senator
 
Posts: 3582
Founded: Jul 23, 2008
Corporate Bordello

Postby Solm » Wed Dec 07, 2011 4:09 pm

[violet] wrote:Just want to run it by SalusaSecondus, then we should be good to go.


Any news on SalusaSecondus's thoughts?

Retired: ns .hellodot. solm @ gmail .dot. com

User avatar
Fischistan
Ambassador
 
Posts: 1384
Founded: Oct 16, 2011
Ex-Nation

Postby Fischistan » Wed Dec 07, 2011 4:35 pm

I think this the right thread to suggest this, so could you put on the api if they have set their capital/leader/religion? And also, perhaps the new legislation they have passed? I'm thinking something like this:
Code: Select all
<nation id="testlandia">
...
<newlegislation>
     <legislation time="6 hours ago">
     the new harry potter book is a best-seller
     </legislation>
</newlegislation>
<has_set_capitol>true</has_set_capitol>
<has_set_leader>true</has_set_leader>
<has_set_faith>false</has_set_faith>
</nation>
Xavier D'Montagne
Fischistani Ambassador to the WA
Unibot II wrote:It's Carta. He CANNOT Fail. Only successes in reverse.
The Matthew Islands wrote:Knowledge is knowing the Tomato is a fruit. Wisdom is knowing not to put it in a fruit salad.
Anthony Delasanta wrote:its was not genocide it was ethnic cleansing...
Socorra wrote:A religion-free abortion thread is like a meat-free hamburger.
Help is on its Way: UDL
Never forget 11 September.
Never look off the edge of cliff on a segway.

11 September 1973, of course.

User avatar
Glen-Rhodes
Powerbroker
 
Posts: 9027
Founded: Jun 25, 2008
Ex-Nation

Postby Glen-Rhodes » Wed Dec 07, 2011 6:48 pm

Fischistan wrote:I think this the right thread to suggest this, so could you put on the api if they have set their capital/leader/religion? And also, perhaps the new legislation they have passed? I'm thinking something like this:

If this is for a script, then you should be able to determine all those things for yourself, shouldn't you? As far as I can tell, the last paragraph in the description has recently passed legislation effects. But I guess that's not in the API, so you'd have to scrape it. But to check if a nation has set certain customizables, you should be able to just look and see if they're in the XML on your end.

User avatar
Fischistan
Ambassador
 
Posts: 1384
Founded: Oct 16, 2011
Ex-Nation

Postby Fischistan » Wed Dec 07, 2011 7:04 pm

I'm doing this in visual basic (so I think that makes it not a script), and I don't know how to derive information from the spotlight page. Does anyone here know how?
Xavier D'Montagne
Fischistani Ambassador to the WA
Unibot II wrote:It's Carta. He CANNOT Fail. Only successes in reverse.
The Matthew Islands wrote:Knowledge is knowing the Tomato is a fruit. Wisdom is knowing not to put it in a fruit salad.
Anthony Delasanta wrote:its was not genocide it was ethnic cleansing...
Socorra wrote:A religion-free abortion thread is like a meat-free hamburger.
Help is on its Way: UDL
Never forget 11 September.
Never look off the edge of cliff on a segway.

11 September 1973, of course.

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Wed Dec 07, 2011 10:47 pm

Don't scrape the spotlight page! I will put it in the API.

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Wed Dec 07, 2011 11:00 pm

And done: added customleader, customreligion, customcapital, legislation shards. See API documentation for examples.

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Wed Dec 07, 2011 11:03 pm

Solm wrote:
[violet] wrote:Just want to run it by SalusaSecondus, then we should be good to go.


Any news on SalusaSecondus's thoughts?

No, so we'll just do it. I'll make the change next week.

User avatar
Ballotonia
Senior Admin
 
Posts: 5494
Founded: Antiquity
Liberal Democratic Socialists

Postby Ballotonia » Thu Dec 08, 2011 2:01 am

Can we also have a way to get a list of all WA nations in a region? That would save having to pull all the nation list pages when running an endochecker.

Example, TEP (using recent numbers):
Nations: 4267, UN:418
Running through the list of nations to build a list of all WA nations: 4267 / 14 = 305 calls to HTML pages. (using 14 instead of 15 to detect nations leaving/entering)
Then actual endorsement counting: 418 XML shards.

Ofcourse, if it would be possible to combine shards of multiple nations into one call, that would be awesome!

Ballotonia
"Een volk dat voor tirannen zwicht zal meer dan lijf en goed verliezen, dan dooft het licht…" -- H.M. van Randwijk

PreviousNext

Advertisement

Remove ads

Return to Moderation

Who is online

Users browsing this forum: No registered users

Advertisement

Remove ads