diff --git a/README.md b/README.md index 43f862a..e5e0206 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,9 @@ cover_letter_loctn: output_filename: - # PATH TO OUTPUT FILE (default output.csv) + +blacklist: +- # Company names you want to ignore ``` __NOTE: AFTER EDITING SAVE FILE, DO NOT COMMIT FILE__ diff --git a/config.yaml b/config.yaml index 483220b..655292f 100644 --- a/config.yaml +++ b/config.yaml @@ -14,4 +14,7 @@ cover_letter_loctn: - # '/home/PATH_TO_FILE' output_filename: -- # PATH TO OUTPUT FILE (default output.csv) \ No newline at end of file +- # PATH TO OUTPUT FILE (default output.csv) + +blacklist: +- # Company names you want to ignore \ No newline at end of file diff --git a/easyapplybot.py b/easyapplybot.py index d6c6e32..224bf2b 100644 --- a/easyapplybot.py +++ b/easyapplybot.py @@ -24,10 +24,15 @@ class EasyApplyBot: MAX_SEARCH_TIME = 10*60 - blacklist = ["Staffigo"] - def __init__(self, username, password, cover_letter_loctn=None, filename='output.csv'): + + def __init__(self, + username, + password, + cover_letter_loctn=None, + filename='output.csv', + blacklist=[]): print("\nWelcome to Easy Apply Bot\n") dirpath = os.getcwd() @@ -378,11 +383,13 @@ def finish_apply(self): print(parameters) cover_letter_loctn = parameters.get('cover_letter_loctn', [None])[0] output_filename = parameters.get('output_filename', ['output.csv'])[0] + blacklist = parameters.get('blacklist', []) bot = EasyApplyBot(parameters['username'], parameters['password'], cover_letter_loctn=cover_letter_loctn, - filename=output_filename + filename=output_filename, + blacklist=blacklist ) locations = [l for l in parameters['locations'] if l != None]