NATION

PASSWORD

pyNSrecruit 0.2.4 | Auto-Telegramming/Recruitment Tool

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.

Advertisement

Remove ads

User avatar
South Jarvis
Bureaucrat
 
Posts: 53
Founded: Oct 15, 2013
Left-wing Utopia

Postby South Jarvis » Mon Jun 15, 2015 6:44 pm

Letoilenoir wrote:http://www.nationstates.net/cgi-bin/api.cgi?q=happenings;filter=move

Could this be added as an alternative filter?

Reasoning being if a nation is already prepared to move they might be tempted to a different region than they originally aimed for


Thanks for the suggestion! It's on my list of things to add to pyNSrecruit.

User avatar
Jean Pierre Trudeau
Ambassador
 
Posts: 1158
Founded: Nov 20, 2013
Ex-Nation

Postby Jean Pierre Trudeau » Mon Jun 15, 2015 10:56 pm

This seems to be working great. Thanks for the good work, it is greatly appreciated by the community.
Jean Pierre Trudeau
Chancellor, United Federation of Canada,
Premier, The North American Union
World Assembly Resolution Author

Socialism is NOT Communism.

User avatar
Topid
Minister
 
Posts: 2820
Founded: Dec 29, 2008
Capitalizt

Postby Topid » Sat Jul 04, 2015 9:58 pm

I just tried to run this for my region. I got an error in the log "Error 403 Client Not Registered For API". To me that sounds like I do not have a valid API key, but it is the same API key I've used for over 2 years for The US. It was working last time I tried to use it (5 months ago). I don't know why it would have quit working.. o.O

I just thought I'd post here to see if anyone knows what could have happened before I waste a mods time asking for a new key that I only think I need. :p
Founder, Pacifica

User avatar
The Confederate State of Missouri
Lobbyist
 
Posts: 13
Founded: Mar 13, 2013
Left-Leaning College State

Postby The Confederate State of Missouri » Tue Jul 07, 2015 1:27 am

Could be because of this

Frisbeeteria wrote:Just a notification to NS++ recruiting players:

I just cleaned up the Client Key database. I removed
  • Anyone whose script hasn't been active for a year or more
  • Anyone who had requested a key three or more months ago and never used it

We don't mind issuing Client Keys to players who will use them, but it's annoying and a fair amount of work to issue keys to people who just think it's cool to have a key.

Please don't request a Client Key unless you a) know how to use it and b) plan to use it.

Thanks,
The NS Game Mods

User avatar
Nouvelle Tealand
Lobbyist
 
Posts: 12
Founded: Jun 09, 2014
Ex-Nation

Anyone Managed to Run this on a Mac?

Postby Nouvelle Tealand » Thu Jul 09, 2015 8:45 pm

I'm not incredibly techy but really like the sound of this tool so I've downloaded Python 3.4 or something for Mac OSX but whenever I open the main file from the zip folder it just comes up with a box of code.... anyone know how to get to the user interface on a mac? :/

User avatar
Farlander Socialist Republic
Civilian
 
Posts: 1
Founded: Mar 22, 2016
Ex-Nation

Postby Farlander Socialist Republic » Sun Apr 10, 2016 2:00 am

This is a great tool, but i keep encountering a problem. Sometime when instead 180 seconds between each telegrams, it waits forever.
"Old but gold" -Mastone 18:5

User avatar
Kautharr
Diplomat
 
Posts: 557
Founded: Feb 25, 2016
Ex-Nation

Postby Kautharr » Mon Apr 18, 2016 1:55 pm

Is this legal?
"The only thing necessary for the triumph of evil is for good men to do nothing." - Edmund Burke
“Our hearts were made for You, O Lord, and they are restless until they rest in you.” - St. Augustine of Hippo
Trump Will Make America Great Again
You are a: Conservative Anti-Government Non-Interventionist Ultranationalist Fundamentalist
Collectivism score: -67%
Authoritarianism score: -33%
Internationalism score: -33%
Tribalism score: 100%
Liberalism score: -100%
Political Compass: Social 4.71 Economic 2.19

User avatar
Zocra
Diplomat
 
Posts: 863
Founded: Feb 21, 2013
New York Times Democracy

Postby Zocra » Mon Apr 18, 2016 5:46 pm

Will there be a .deb file in the future?
Last edited by Google Bot today, edited 1 time in total. | I exist for your benefit.

Founder: United Alliances
Timezone: US Eastern

User avatar
Zocra
Diplomat
 
Posts: 863
Founded: Feb 21, 2013
New York Times Democracy

Postby Zocra » Tue Apr 19, 2016 2:58 pm

Kautharr wrote:Is this legal?

Yes.
Last edited by Google Bot today, edited 1 time in total. | I exist for your benefit.

Founder: United Alliances
Timezone: US Eastern

User avatar
Dalaen
Bureaucrat
 
Posts: 59
Founded: Mar 13, 2016
Ex-Nation

Postby Dalaen » Wed Apr 20, 2016 5:56 am

Zocra wrote:Will there be a .deb file in the future?


Dear Zocra,

Forgive me for interrupting but a .deb package is entirely unnecessary. Simply run from the command line, you can even create shortcuts that would do the command for you. Currently this is a beautifully simple solution to a problem. Creating a .deb package would simply add unnecessary bloat to the software and your system in turn.

Yours Sincerely,

Dalaen

User avatar
Kautharr
Diplomat
 
Posts: 557
Founded: Feb 25, 2016
Ex-Nation

Postby Kautharr » Wed Apr 27, 2016 10:37 am

When I try to open it, it just opens it as a text file... Is this linux only?
"The only thing necessary for the triumph of evil is for good men to do nothing." - Edmund Burke
“Our hearts were made for You, O Lord, and they are restless until they rest in you.” - St. Augustine of Hippo
Trump Will Make America Great Again
You are a: Conservative Anti-Government Non-Interventionist Ultranationalist Fundamentalist
Collectivism score: -67%
Authoritarianism score: -33%
Internationalism score: -33%
Tribalism score: 100%
Liberalism score: -100%
Political Compass: Social 4.71 Economic 2.19

User avatar
Imperium Anglorum
Powerbroker
 
Posts: 8922
Founded: Aug 26, 2013
Left-Leaning College State

Postby Imperium Anglorum » Sat Oct 08, 2016 1:25 am

Kautharr wrote:When I try to open it, it just opens it as a text file... Is this linux only?

You may need to install Python to execute Python files (.py)

Author: 1 SC and 28 GA resolutions
Maintainer: GA Passed Resolutions
Developer: Communiqué and InfoEurope
Delegate for Europe
Out-of-character unless marked otherwise
Ideological Bulwark 285, WALL delegate
Dastardly villain providing free services to the community sans remuneration

User avatar
South Jarvis
Bureaucrat
 
Posts: 53
Founded: Oct 15, 2013
Left-wing Utopia

0.2.3 Update

Postby South Jarvis » Tue Feb 14, 2017 6:21 pm

Hu wha? Hey, this is still here!

I've just pushed a minor update, 0.2.3, which switches the telegram API over to HTTPS per the new API documentation.

User avatar
South Jarvis
Bureaucrat
 
Posts: 53
Founded: Oct 15, 2013
Left-wing Utopia

0.2.4 Update

Postby South Jarvis » Thu Mar 16, 2017 10:31 pm

Another update today: pyNSrecruit will now refuse to start telegramming if you have not saved the settings to a campaign. The previous behaviour was a poor design decision on my part and has tripped up several people.

User avatar
Frisbeeteria
Senior Game Moderator
 
Posts: 23913
Founded: Dec 16, 2003
Anarchy

Postby Frisbeeteria » Thu Mar 16, 2017 11:01 pm

South Jarvis wrote:pyNSrecruit will now refuse to start telegramming if you have not saved the settings to a campaign.

I don't know what this means in your app, but I'm hoping it means you look for a checked 'campaign' or 'recruitment' checkbox in the telegram template. If it's not, that would be a great feature, welcomed by mods and players alike.

User avatar
LollerLand
Chargé d'Affaires
 
Posts: 437
Founded: May 15, 2014
Left-wing Utopia

Postby LollerLand » Mon Mar 20, 2017 12:15 pm

Frisbeeteria wrote:
South Jarvis wrote:pyNSrecruit will now refuse to start telegramming if you have not saved the settings to a campaign.

I don't know what this means in your app, but I'm hoping it means you look for a checked 'campaign' or 'recruitment' checkbox in the telegram template. If it's not, that would be a great feature, welcomed by mods and players alike.

It actually means that the program won't run until the settings are saved into the save file. But a feature like the one you mentioned would be really great!
Citizen of The Universal Allegiance
Citizen of Equilism
Kuramia wrote:Truth. Loller is bae

Chron wrote:He is

The Islamic Canadian Republic wrote:@Loller : Almost Morgan Freeman

User avatar
Imperium Anglorum
Powerbroker
 
Posts: 8922
Founded: Aug 26, 2013
Left-Leaning College State

Postby Imperium Anglorum » Mon Mar 20, 2017 1:56 pm

Frisbeeteria wrote:
South Jarvis wrote:pyNSrecruit will now refuse to start telegramming if you have not saved the settings to a campaign.

I don't know what this means in your app, but I'm hoping it means you look for a checked 'campaign' or 'recruitment' checkbox in the telegram template. If it's not, that would be a great feature, welcomed by mods and players alike.

I don't think there is a way of verifying that a telegram is checked as campaign or recruitment without something like this, so it is possible to actually query for that information. There is a theoretical workaround in that you could webscrape your way to doing that, but you would have to log into NationStates with your username and password. It would also take forever to do, as there are strict rate-limits on web-scraping. I would note that Communique has this exact same save requirement, just that Communique automatically creates an autosave file when the program closes.
Last edited by Imperium Anglorum on Mon Mar 20, 2017 1:57 pm, edited 1 time in total.

Author: 1 SC and 28 GA resolutions
Maintainer: GA Passed Resolutions
Developer: Communiqué and InfoEurope
Delegate for Europe
Out-of-character unless marked otherwise
Ideological Bulwark 285, WALL delegate
Dastardly villain providing free services to the community sans remuneration

User avatar
Heaverian Islands
Political Columnist
 
Posts: 2
Founded: Apr 27, 2017
Ex-Nation

Please help! | Linux

Postby Heaverian Islands » Fri May 19, 2017 7:53 am

Hey guys! I am in need of help! I have a linux server. And well... I'm not very good with Linux. Is it possible to get this telegrammer or any with the Linux terminal? If so, how? Thank you!

User avatar
Vegaslovakia
Spokesperson
 
Posts: 122
Founded: Jan 19, 2017
Democratic Socialists

Postby Vegaslovakia » Sun Nov 05, 2017 7:32 pm

Does this work on QPython 3? I don't know how to use the app, or obtain an API or whatever it is you need to run pyNSrecruit.

User avatar
Kassimo
Lobbyist
 
Posts: 11
Founded: May 10, 2015
Left-wing Utopia

Postby Kassimo » Sat Feb 03, 2018 12:19 pm

Thank you kindly for this resource! :)

User avatar
Potato
Chargé d'Affaires
 
Posts: 481
Founded: Mar 10, 2017
Corrupt Dictatorship

Postby Potato » Tue Jan 22, 2019 5:36 pm

http://prntscr.com/matnuj

I was sending telegrams through API yesterday and then restarted my PC, and then it did this when I started it up.
_%%%%%___%%%%__%%%%%__%%%%__%%%%%___%%%%__
_%%__%%__%%__%%___%%____%%__%%___%%_____%%__%%_
_%%%%%__%%__%%___%%____%%%%%____%%____%%___%%_
_%%_______%%__%%___%%____%%__%%____%%____%%__%%_
_%%________%%%%____%%____%%__%%____%%_____%%%%__

Audioslavia wrote:If someone wilfully steers it back towards 'yeah but what if a methodist dude does a sunni dude for four seconds on a Tuesday in spring what then is that bad?" then let us know
Proctopeo wrote:it's like when voldemort ate hitler's soul to become darth vader 2
Ifreann wrote:FEMINISM DESTROYED
The Archregimancy wrote:If any former members of the 1919-1945 Nationalsozialistische Deutsche Arbeiterpartei post in Moderation to complain that they're being trolled, I'll revisit this; but I suspect that they're a fairly small demographic within our forums.
Audioslavia wrote:We unfortunately don't banhammer people for being catastrophically smug.
Hello, I love you! Yes, you! You're a great human, keep going!

User avatar
Waybaria
Civilian
 
Posts: 1
Founded: May 20, 2018
Ex-Nation

Postby Waybaria » Thu Jan 24, 2019 12:56 am

Exactly the same issue here, pyNSrecruit, NSTG and others are dead. The API seems to be not working at all

User avatar
Androdium
Civil Servant
 
Posts: 9
Founded: Aug 27, 2019
Corporate Bordello

Postby Androdium » Sat Sep 28, 2019 9:45 am

So I think I’ve ran into a problem. PyNSrecruit used to work fine however once I tried getting the tgid and secret keys from a web address it gave me a warning message stating (If a nations have been telegramed then it’s ok to stop telegramming now.) or something on the lines of that
The Republic is Eternal! (Wait that sounded super communist. My nation is democratic I swear!!)

User avatar
Al-Hadun
Civilian
 
Posts: 1
Founded: Sep 28, 2019
Benevolent Dictatorship

PyNSrecruit error message

Postby Al-Hadun » Wed Oct 09, 2019 2:41 pm

[warn] All applicable nations have been telegrammed already. Waiting 30 seconds
[warn] If telegramming a fixed number of participants it is safe to stop telegramming now.
What does this mean?! Please help?!

User avatar
Marxist Germany
Ambassador
 
Posts: 1294
Founded: Jun 07, 2018
Corporate Bordello

Postby Marxist Germany » Wed Oct 09, 2019 3:40 pm

What I understand is that you have already telegrammed the nations on the list recently and the game doesnt allow you to send recruitment TGs too frequently to the same nation.
Country represents RL views mostly. Not Marxist anymore.
Author of GA#461, and GA#470

Ex-delegate of The United Federations; citizen of 10000 Islands | Gaming User#0721(Discord)
RP name: Germany
The National Factbook (WIP)
Ambassador Klaus Schmidt
Political Compass
PolitiStates Result
Pro:Laissez-faire, Nationalism, Guns, Free speech, Christianity, Same-sex marriage, United Ireland.
Anti:Extreme Progressivism, Abortion, Socialism, Interventionism, Mass-migration.
A high school student aged 15 from Ireland, living in Co. Dublin. Interested in politics, gaming, and history.

Previous

Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: No registered users

Advertisement

Remove ads