#NEWLINE# def main( ) : #NEWLINE# #INDENT# 'Executed by cron every minute. Sends POST request to recieve\n    reminder for upcoming minute.' #NEWLINE# target = 'http://ping-me.himanshumishra.in/ping/' #NEWLINE# email = ping_me . authenticate . extract_email ( ) #NEWLINE# key = ping_me . authenticate . extract_password ( ) #NEWLINE# data_t = { #NEWLINE# #INDENT# 'email' : email , #NEWLINE# 'password' : key , #NEWLINE# #UNINDENT# } #NEWLINE# r = requests . post ( target , data = target ) #NEWLINE# if ( ast . literal_eval ( r . text ) [ 'success' ] == 'True' ) : #NEWLINE# #INDENT# message = cryptex . decryptor ( key , ast . literal_eval ( r . text ) [ 'message' ] ) #NEWLINE# if ( sys . platform == 'linux2' ) : #NEWLINE# #INDENT# subprocess . call ( [ 'notify-send' , message ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( sys . platform == 'darwin' ) : #NEWLINE# #INDENT# subprocess . call ( [ 'terminal-notifier' , '-title' , 'ping-me' , message ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( sys . platform in [ 'win32' , 'win64' ] ) : #NEWLINE# #INDENT# pass