by South Jarvis » Sat Apr 18, 2015 2:57 am
by Conservative Values » Sat Apr 18, 2015 3:28 am
by Ainocra » Sat Apr 18, 2015 5:33 pm
by Kemintiri of Kemet » Sat Apr 18, 2015 5:55 pm
by Hobbesistan » Sat Apr 18, 2015 5:57 pm
by South Jarvis » Sat Apr 18, 2015 8:05 pm
by Ainocra » Sun Apr 19, 2015 4:33 am
2015-04-19 07:03:04 [ERRR] An error occurred while loading session data. Check the log.
JSONDecodeError('Expecting value: line 1 column 1 (char 0)',)
2015-04-19 07:20:25 [INFO] Starting telegramming.
2015-04-19 07:20:25 [INFO] Started telegramming.
2015-04-19 07:20:25 [WARN] All applicable nations have been telegrammed already. Waiting 30 seconds.
2015-04-19 07:20:25 [WARN] If telegramming a fixed number of recipients, it is safe to stop telegramming now.
2015-04-19 07:20:55 [WARN] All applicable nations have been telegrammed already. Waiting 30 seconds.
2015-04-19 07:20:55 [WARN] If telegramming a fixed number of recipients, it is safe to stop telegramming now.
2015-04-19 07:21:25 [WARN] All applicable nations have been telegrammed already. Waiting 30 seconds.
2015-04-19 07:21:25 [WARN] If telegramming a fixed number of recipients, it is safe to stop telegramming now.
2015-04-19 07:21:55 [WARN] All applicable nations have been telegrammed already. Waiting 30 seconds.
2015-04-19 07:21:55 [WARN] If telegramming a fixed number of recipients, it is safe to stop telegramming now.
2015-04-19 07:22:25 [WARN] All applicable nations have been telegrammed already. Waiting 30 seconds.
2015-04-19 07:22:25 [WARN] If telegramming a fixed number of recipients, it is safe to stop telegramming now.
2015-04-19 07:22:55 [WARN] All applicable nations have been telegrammed already. Waiting 30 seconds.
2015-04-19 07:22:55 [WARN] If telegramming a fixed number of recipients, it is safe to stop telegramming now.
2015-04-19 07:23:25 [WARN] All applicable nations have been telegrammed already. Waiting 30 seconds.
2015-04-19 07:23:25 [WARN] If telegramming a fixed number of recipients, it is safe to stop telegramming now.
2015-04-19 07:23:55 [WARN] All applicable nations have been telegrammed already. Waiting 30 seconds.
2015-04-19 07:23:55 [WARN] If telegramming a fixed number of recipients, it is safe to stop telegramming now.
2015-04-19 07:24:25 [INFO] Stopping telegramming. Telegramming will stop when waiting finishes.
2015-04-19 07:24:25 [INFO] Stopped telegramming.
2015-04-19 07:25:01 [INFO] Starting telegramming.
2015-04-19 07:25:01 [INFO] Started telegramming.
2015-04-19 07:25:01 [WARN] All applicable nations have been telegrammed already. Waiting 30 seconds.
2015-04-19 07:25:01 [WARN] If telegramming a fixed number of recipients, it is safe to stop telegramming now.
2015-04-19 07:25:31 [WARN] All applicable nations have been telegrammed already. Waiting 30 seconds.
2015-04-19 07:25:31 [WARN] If telegramming a fixed number of recipients, it is safe to stop telegramming now.
2015-04-19 07:26:01 [WARN] All applicable nations have been telegrammed already. Waiting 30 seconds.
2015-04-19 07:26:01 [WARN] If telegramming a fixed number of recipients, it is safe to stop telegramming now.
2015-04-19 07:26:31 [WARN] All applicable nations have been telegrammed already. Waiting 30 seconds.
2015-04-19 07:26:31 [WARN] If telegramming a fixed number of recipients, it is safe to stop telegramming now.
2015-04-19 07:27:01 [WARN] All applicable nations have been telegrammed already. Waiting 30 seconds.
2015-04-19 07:27:01 [WARN] If telegramming a fixed number of recipients, it is safe to stop telegramming now.
2015-04-19 07:27:31 [WARN] All applicable nations have been telegrammed already. Waiting 30 seconds.
2015-04-19 07:27:31 [WARN] If telegramming a fixed number of recipients, it is safe to stop telegramming now.
2015-04-19 07:28:01 [WARN] All applicable nations have been telegrammed already. Waiting 30 seconds.
2015-04-19 07:28:01 [WARN] If telegramming a fixed number of recipients, it is safe to stop telegramming now.
2015-04-19 07:28:31 [WARN] All applicable nations have been telegrammed already. Waiting 30 seconds.
2015-04-19 07:28:31 [WARN] If telegramming a fixed number of recipients, it is safe to stop telegramming now.
2015-04-19 07:29:01 [WARN] All applicable nations have been telegrammed already. Waiting 30 seconds.
2015-04-19 07:29:01 [WARN] If telegramming a fixed number of recipients, it is safe to stop telegramming now.
2015-04-19 07:29:31 [WARN] All applicable nations have been telegrammed already. Waiting 30 seconds.
2015-04-19 07:29:31 [WARN] If telegramming a fixed number of recipients, it is safe to stop telegramming now.
by South Jarvis » Sun Apr 19, 2015 5:10 am
Ainocra wrote:this is what I got as output, I do not think it sent anything.
by Indian Empire » Sun Apr 19, 2015 6:35 am
by Enfaru » Sun Apr 19, 2015 7:21 am
Indian Empire wrote:Could you make this available somewhere else besides GitHub? Like say, an Android app?
by Ainocra » Sun Apr 19, 2015 12:29 pm
2015-04-19 15:19:07 [INFO] Starting telegramming.
2015-04-19 15:19:07 [INFO] Started telegramming.
2015-04-19 15:19:07 [WARN] All applicable nations have been telegrammed already. Waiting 30 seconds.
2015-04-19 15:19:07 [WARN] If telegramming a fixed number of recipients, it is safe to stop telegramming now.
2015-04-19 15:19:37 [WARN] All applicable nations have been telegrammed already. Waiting 30 seconds.
2015-04-19 15:19:37 [WARN] If telegramming a fixed number of recipients, it is safe to stop telegramming now.
2015-04-19 15:19:50 [INFO] Stopping telegramming. Telegramming will stop when waiting finishes.
2015-04-19 15:20:07 [INFO] Stopped telegramming.
2015-04-19 15:21:07 [INFO] Starting telegramming.
2015-04-19 15:21:07 [INFO] Started telegramming.
2015-04-19 15:21:07 [WARN] All applicable nations have been telegrammed already. Waiting 30 seconds.
2015-04-19 15:21:07 [WARN] If telegramming a fixed number of recipients, it is safe to stop telegramming now.
2015-04-19 15:21:37 [WARN] All applicable nations have been telegrammed already. Waiting 30 seconds.
2015-04-19 15:21:37 [WARN] If telegramming a fixed number of recipients, it is safe to stop telegramming now.
2015-04-19 15:22:07 [WARN] All applicable nations have been telegrammed already. Waiting 30 seconds.
2015-04-19 15:22:07 [WARN] If telegramming a fixed number of recipients, it is safe to stop telegramming now.
2015-04-19 15:22:37 [WARN] All applicable nations have been telegrammed already. Waiting 30 seconds.
2015-04-19 15:22:37 [WARN] If telegramming a fixed number of recipients, it is safe to stop telegramming now.
2015-04-19 15:23:07 [WARN] All applicable nations have been telegrammed already. Waiting 30 seconds.
2015-04-19 15:23:07 [WARN] If telegramming a fixed number of recipients, it is safe to stop telegramming now.
2015-04-19 15:23:37 [WARN] All applicable nations have been telegrammed already. Waiting 30 seconds.
2015-04-19 15:23:37 [WARN] If telegramming a fixed number of recipients, it is safe to stop telegramming now.
2015-04-19 15:24:07 [WARN] All applicable nations have been telegrammed already. Waiting 30 seconds.
2015-04-19 15:24:07 [WARN] If telegramming a fixed number of recipients, it is safe to stop telegramming now.
by South Jarvis » Sun Apr 19, 2015 6:10 pm
Ainocra wrote:ok I wrote a new one on the fly entirely from scratch and cut the list down to around 20 nations and this was the output.
by Ainocra » Sun Apr 19, 2015 7:35 pm
by South Jarvis » Fri Apr 24, 2015 1:22 am
by The Confederate State of Missouri » Wed May 06, 2015 1:25 am
by Anaaxes » Wed May 06, 2015 7:06 pm
The Confederate State of Missouri wrote:Being able to copy and paste the telegram info: API key, secret key, telgram ID would be cool.
by The Confederate State of Missouri » Wed May 06, 2015 11:56 pm
by Ainocra » Fri May 22, 2015 5:18 pm
by Conservative Values » Sat May 23, 2015 10:58 am
by South Jarvis » Wed May 27, 2015 1:01 am
Ainocra wrote:So tonight I made a list and sent out about 200 or so tg's. I was at the start of the list. It sent it to the entire list then looped around and sent it to me again.
telegramHistory = collections.deque(maxlen=100) #TODO: Make this configurable.
Conservative Values wrote:One thing that I've noticed that surprised me is that focusing on nations by action of "refounding" includes both foundings and refoundings.
by Misley » Fri Jun 05, 2015 8:37 pm
resp = urllib.request.urlopen(req)
def matches(self, nation):
req = urllib.request.Request("https://www.nationstates.net/cgi-bin/api.cgi?nation={0}&q=category".format(nation))
req.add_header("User-Agent", "pyNSrecruit/{0} (South Jarvis)".format(VERSION))
try:
resp = urllib.request.urlopen(req)
if resp.status == 200:
data = resp.read().decode("utf-8")
nationCategory = re.search(r"<CATEGORY>(.*)</CATEGORY>", data).group(1)
log(DEBG, "Got category {0}.".format(nationCategory))
for matchCategory in self.categories:
if nationCategory == matchCategory:
return (True if self.inverted == 0 else False)
return (False if self.inverted == 0 else True)
else:
#log(ERRR, "Unable to load data for {1}. Got response code {0}.".format(resp.status, nation))
return True #Be safe!
except urllib.error.HTTPError as e:
log(ERRR, "Unable to load category data. Got some kinda fuckin error")
return True
by Sad-States » Fri Jun 05, 2015 10:23 pm
- Former Magister to The East Pacific | Former Officer to the EPSA | Former Officer of HR to The Rejected Realms | -
- Former Evocatus to Legio Pacifica -
Proud Warden to the Order of The Grey Wardens
by South Jarvis » Sat Jun 06, 2015 12:08 am
Misley wrote:If a nation ceases to exist between being added to the pool of recruitable nations and attempting to send the telegram, the recruitment thread breaks when checking the nation against excluded categories, as making an API call for a nonexistent nation throws a 404 error.
by Letoilenoir » Mon Jun 15, 2015 12:21 pm
Advertisement
Users browsing this forum: Bali Kingdom, Countriopia, Tamocordia, Trotterdam
Advertisement