Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions aessuccess.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@

from billmonster import _element_available

from clint import args
from clint.arguments import Args
args = Args()
from clint.textui import colored, puts

import keyring, sys


def aessuccess(user=None, quit_when_finished=True, browser=None):
def aessuccess(user=None, quit_when_finished=True, browser=None, index=None):

if not user:
# Get the username from the command line arguments.
Expand Down
5 changes: 3 additions & 2 deletions att.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@

from billmonster import _element_available

from clint import args
from clint.arguments import Args
args = Args()
from clint.textui import colored, puts

import keyring, sys


def att(user=None, quit_when_finished=True, browser=None):
def att(user=None, quit_when_finished=True, browser=None, index=None):

if not user:
# Get the username from the command line arguments.
Expand Down
3 changes: 2 additions & 1 deletion bankofamerica.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

from billmonster import _element_available

from clint import args
from clint.arguments import Args
args = Args()
from clint.textui import colored, puts

import keyring, os, sys
Expand Down
24 changes: 13 additions & 11 deletions billmonster.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,24 @@ def main():

# Init the WebDriver.
browser = webdriver.Firefox()
try:

for account in config._sections:
for account in config._sections:

# Grab the provider and the usernames.
provider = account
usernames = config._sections[account]['users']
usernames = [x.strip() for x in usernames.split(',')]
# Grab the provider and the usernames.
provider = account
usernames = config._sections[account]['users']
usernames = [x.strip() for x in usernames.split(',')]

index = 0
index = 0

# Run the script for each account user.
for user in usernames:
PROVIDERS[provider](user, False, browser, index)
index = index + 1
# Run the script for each account user.
for user in usernames:
PROVIDERS[provider](user, False, browser, index)
index = index + 1

browser.quit()
finally:
browser.quit()


# Helper function to check whether an element exists yet on the page.
Expand Down
5 changes: 3 additions & 2 deletions capitalone.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@

from billmonster import _element_available

from clint import args
from clint.arguments import Args
args = Args()
from clint.textui import colored, puts

import keyring, sys


def capitalone(user=None, quit_when_finished=True, browser=None):
def capitalone(user=None, quit_when_finished=True, browser=None, index=None):

if not user:
# Get the username from the command line arguments.
Expand Down
5 changes: 3 additions & 2 deletions wellsfargo.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@

from billmonster import _element_available

from clint import args
from clint.arguments import Args
args = Args()
from clint.textui import colored, puts

import keyring, sys


def wellsfargo(user=None, quit_when_finished=True, browser=None):
def wellsfargo(user=None, quit_when_finished=True, browser=None, index=None):

if not user:
# Get the username from the command line arguments.
Expand Down