def do_update(self):
    if (self.check_update() == False):
        if (self.get_date() != str(datetime.date.today())):
            print('Data not updated. Sleeping for 1 minute.\n')
            time.sleep(60)
            print('Rechecking.\n')
            self.do_update()
            return
        dfOld = pd.read_csv('data.csv', index_col=False)
        dfOld = dfOld.append(self.get_dataframe())
        dfOld.to_csv('data.csv', index=False)
        file = 'phoneNumbers.txt'
        numbers = open(file, 'r')
        if (os.stat(file).st_size == 0):
            print('No recent phone numbers found. Please enter your phone numbers including area code and no dashes into the phoneNumbers.txt file, with each phone number tabbed.')
            return
        else:
            paste = []
            for line in numbers:
                paste.append(line.replace('\n', ''))
            self.do_sms(paste)
def do_update(self):
    if (self.check_update() == False):
        if (self.get_date() != str(datetime.date.today())):
            print('Data not updated. Sleeping for 1 minute.\n')
            time.sleep(60)
            print('Rechecking.\n')
            self.do_update()
            return
        dfOld = pd.read_csv('data.csv', index_col=False)
        dfOld = dfOld.append(self.get_dataframe())
        dfOld.to_csv('data.csv', index=False)
        file = 'phoneNumbers.txt'
        numbers = open(file, 'r')
        if (os.stat(file).st_size == 0):
            print('No recent phone numbers found. Please enter your phone numbers including area code and no dashes into the phoneNumbers.txt file, with each phone number tabbed.')
            return
        else:
            paste = []
            for line in numbers:
                paste.append(line.replace('\n', ))
            self.do_sms(paste)