Advertisement
by Cerb » Sat Feb 07, 2015 2:08 pm
by Laevendell » Sun Feb 08, 2015 5:48 am
by Laevendell » Tue Feb 10, 2015 1:36 pm
by [violet] » Tue Feb 10, 2015 9:28 pm
Laevendell wrote:Sorry for triple-posting, but I found an issue with the text of (at least) one issue result.
It says "@@PL(ANIMAL)@@ are considered a delicacy". Shouldn't @@PL(ANIMAL)@@ have been parsed to the national animal (plural) in the text?
EDIT: Also in "the government funds large training centres to turn @@PL(ANIMAL)@@ into functioning members of society".
by [violet] » Tue Feb 10, 2015 9:31 pm
Laevendell wrote:Would it be possible to include when a nation mentioned you or liked your message (like in Notices)?
by Laevendell » Wed Feb 11, 2015 1:44 am
[violet] wrote:Notices are considered private to the nation (same as which issues it's currently facing), so won't be added to a public API. I'm not sure there's a good way to duplicate the RMB part just for the API.
by [violet] » Wed Feb 11, 2015 1:04 pm
Laevendell wrote:Is there any consideration of a logged-in API, e.g. along my previous suggestion, using session tokens for very good security?
by Laevendell » Wed Feb 11, 2015 1:33 pm
[violet] wrote:Which one is that? We're open to the concept. It's something I've been hoping to get one of our more security-aware devs to look at, since the last time I tried to mess in that area, it didn't work out so well.
by Unibot III » Wed Feb 18, 2015 9:56 am
[violet] wrote:I mean this in the best possible way,
but Unibot is not a typical NS player.
Milograd wrote:You're a caring, resolute lunatic
with the best of intentions.
by Aurum Rider » Sun Mar 01, 2015 1:19 am
by Eluvatar » Thu Mar 05, 2015 12:58 am
Cerb wrote:I'm probably missing something obvious. I want to track current region of nation,WA status, endorsements, and wehther a nation is active (as in not CTE).
I figured I could just grab the nation daily data dump but it seems to be missing endorsements.
This means I'd have to make a ton of API calls to gather this information.
Even if I just restricted my interest to my region itt would take several hundred calls. I can't afford to do that with the current rate limits.
Ideally endorsements would be present in the daily data dump. I don't need the data to be dynamic, just gathered once a day.
If there is another obvious solution please feel free to suggest it.
Cheers!
by Athretvari » Sat Mar 28, 2015 2:31 pm
Unibot III wrote:This GDP and income information is pretty useful, [violet] - could we get shards for that, please?
by Eluvatar » Sun Mar 29, 2015 11:13 am
Eluvatar wrote:[violet] wrote:If you can't set the UserAgent, putting something informative in the URL's query string is definitely better than nothing.
I'm updating all the active gdocs I have edit privileges in to add the below to all API request URLs:
- Code: Select all
"&gdoc="+SpreadsheetApp.getActiveSpreadsheet().getId()+"&useremail="+Session.getUser().getUserLoginId()
var url = "http://www.nationstates.net/cgi-bin/api.cgi?param_name1=" + param_value1
+ ...
+ "&gdoc=" + SpreadsheetApp.getActiveSpreadsheet().getId() + "&useremail="
+ Session.getUser().getEmail();
var url = "http://www.nationstates.net/cgi-bin/api.cgi?param_name1=" + param_value1
+ ...
+ "&gdoc=" + SpreadsheetApp.getActiveSpreadsheet().getId() + "&owneremail="
+ SpreadsheetApp.getActiveSpreadsheet().getOwner().getEmail();
by Vancouvia » Wed Apr 08, 2015 12:20 pm
by Laevendell » Wed Apr 08, 2015 12:33 pm
by Vancouvia » Wed Apr 08, 2015 12:47 pm
Laevendell wrote:There are two easy ways of getting the information.
The older way is using the WA memberlog shard: https://www.nationstates.net/cgi-bin/ap ... =memberlog
The newer way is using the World happenings shard with a member filter: https://www.nationstates.net/cgi-bin/ap ... ter=member
You'll have to filter yourself with some kind of XML parser if you only want admitted nations e.g.
by Nephmir » Wed Apr 08, 2015 5:51 pm
Vancouvia wrote:Laevendell wrote:There are two easy ways of getting the information.
The older way is using the WA memberlog shard: https://www.nationstates.net/cgi-bin/ap ... =memberlog
The newer way is using the World happenings shard with a member filter: https://www.nationstates.net/cgi-bin/ap ... ter=member
You'll have to filter yourself with some kind of XML parser if you only want admitted nations e.g.
Any way to get it in the same format so it's just separated by commas? I have no idea what a XML parser is, haha.
GP References
Military Gameplay
Login Script
Manual Recruitment
The 300 Endorsements of Nephmir
"100 by land, 100 by air, 100 by sea."
Mercenary of The Sable Order
Commander in Project Soul
by Vancouvia » Wed Apr 08, 2015 6:10 pm
Nephmir wrote:Vancouvia wrote:
Any way to get it in the same format so it's just separated by commas? I have no idea what a XML parser is, haha.
Not sure if it helps, but if you're looking for times such events happened you can go to the activity page filtered on members and click the timestamp next to an event (IE- "seconds ago") and it'll show all the times the events happened instead of the vague timestamp (after the information is available on the API, which I believe has a 28 second delay).
If you're looking to recruit from a list of new members you can use the shard that shows all WA members, and copy and paste what you need out of it. There's also a tag for telegrams (if you're willing to purchase stamps from the store) for new delegates. Otherwise I'm afraid the only option is to use the activity page, unless you can somehow extract what you need through scraping or xml.
by Zocra » Tue Apr 21, 2015 7:55 am
by Ever-Wandering Souls » Tue Apr 21, 2015 5:17 pm
The Alicorns (Equestria) wrote:Let them stay, no need to badmouth them...From our view a bunch of nations just came in, seized the delegate position, and changed a few superficial things...we play NationStates differently...there's really no reason for us to be butthurt.
http://www.nationstates.net/page=rmb/postid=8944227
http://www.nationstates.net/page=rmb/postid=8951258
Reploid Productions wrote:Raiders are endlessly creative
by Phydios » Tue Apr 21, 2015 6:41 pm
Ever-Wandering Souls wrote:If you're just talking about searching for a specific word or phrase, you can do that in the game itself, by going to the RMB in forum view (little link near the top) and searching there
If you claim to be religious but don’t control your tongue, you are fooling yourself, and your religion is worthless. Pure and genuine religion in the sight of God the Father means caring for orphans and widows in their distress and refusing to let the world corrupt you. | Not everyone who calls out to me, ‘Lord! Lord!’ will enter the Kingdom of Heaven. Only those who actually do the will of my Father in heaven will enter. On judgment day many will say to me, ‘Lord! Lord! We prophesied in your name and cast out demons in your name and performed many miracles in your name.’ But I will reply, ‘I never knew you. Get away from me, you who break God’s laws.’James 1:26-27, Matthew 7:21-23
by Zacherie » Sun May 03, 2015 10:45 am
Zocra wrote:Is there a way to use the api to find range of rmb posts? Like if I wanted to search for posts from the first post ever to the 100th post or something...
by Letoilenoir » Mon May 25, 2015 1:58 am
http://www.nationstates.net/cgi-bin/api.cgi?nation=letoilenoir&q=name
http://www.nationstates.net/cgi-bin/api.cgi?nation=letoilenoir&q=name+wa
by Letoilenoir » Mon May 25, 2015 2:35 am
Cerb wrote:I'm probably missing something obvious. I want to track current region of nation,WA status, endorsements, and wehther a nation is active (as in not CTE).
I figured I could just grab the nation daily data dump but it seems to be missing endorsements.
This means I'd have to make a ton of API calls to gather this information.
Even if I just restricted my interest to my region itt would take several hundred calls. I can't afford to do that with the current rate limits.
Ideally endorsements would be present in the daily data dump. I don't need the data to be dynamic, just gathered once a day.
If there is another obvious solution please feel free to suggest it.
Cheers!
by Ballotonia » Mon May 25, 2015 3:03 am
Letoilenoir wrote:Question: When using the shards this
- Code: Select all
http://www.nationstates.net/cgi-bin/api.cgi?nation=letoilenoir&q=name
counts as one call to the API, correct?
Does this:
- Code: Select all
http://www.nationstates.net/cgi-bin/api.cgi?nation=letoilenoir&q=name+wa
constitute two calls, or does it still qualify as 1?
Advertisement
Users browsing this forum: Bookment, Inferior, Knights of LUSITANIA, La Xinga, Meadrin, Micro Gettysburg, Montandi-Cisalpina, Pacfican States, Pauriun, Pygania, Sicias, The Micro Union, The Xolbarian Opposition
Advertisement