Example #1
0
 def doLogon(self):
     time0 = time.time()
     print 'STARTING TO LOGIN'
     statusdict = get_database_data( )
     print 'FINISHED LOGIN STUFF IN %0.3f SECONDS: %s' % (
         time.time() - time0, statusdict['message'] )
     if statusdict['message'] != 'SUCCESS':
         self.lw.setFromStatus( statusdict )
         self.lw.show()
     else:
         self.cookies = statusdict['cookies']
         email = statusdict['email']
         password = statusdict['password']
         data = get_article_data( email, password, self.cookies )
         self.pushData( data['articles'], data['ids_ordered'] )
Example #2
0
 def pushDataFromCreds(self, email, password, cookies ):
     self.cookies = cookies
     data = get_article_data( email, password, cookies )
     self.pushData( data['articles'], data['ids_ordered'] )