Last active
January 2, 2016 18:49
-
-
Save Celeo/8346458 to your computer and use it in GitHub Desktop.
Use eveapi to determine time all corp POSs run out of fuel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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