Skip to content

Instantly share code, notes, and snippets.

@Celeo
Last active January 2, 2016 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Celeo/8346458 to your computer and use it in GitHub Desktop.
Save Celeo/8346458 to your computer and use it in GitHub Desktop.
Use eveapi to determine time all corp POSs run out of fuel
import eveapi
from datetime import datetime
api = eveapi.EVEAPIConnection()
auth = api.auth(keyID=raw_input('Key ID: '), vCode=raw_input('vCode: '))
events = auth.char.UpcomingCalendarEvents()
print ''
for event in events.upcomingEvents:
print 'Tower for', event.ownerName, 'named', event.eventText.split('<b>Name</b>: ')[1].split('<br />')[0], \
'goes offline', datetime.fromtimestamp(event.eventDate).strftime('%Y-%m-%d %H:%M:%S')
print ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment