Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GodsScion/Auto_job_applier_linkedIn
/ functions
Functions
95 in github.com/GodsScion/Auto_job_applier_linkedIn
⨍
Functions
95
◇
Types & classes
0
↳
Endpoints
3
↓ 159 callers
Function
print_lg
Function to log and print. **Note that, `end` and `flush` parameters are ignored if `pretty = True`**
modules/helpers.py:133
↓ 38 callers
Function
check_string
(var: str, var_name: str, options: list=[], min_length: int=0)
modules/validator.py:33
↓ 26 callers
Function
truncate_for_csv
Function to truncate data for CSV writing to avoid field size limit errors. * Takes in `data` of any type and converts to string * Takes
modules/helpers.py:266
↓ 25 callers
Function
buffer
Function to wait within a period of selected random range. * Will not wait if input `speed <= 0` * Will wait within a random range of
modules/helpers.py:150
↓ 25 callers
Function
check_boolean
(var: bool, var_name: str)
modules/validator.py:29
↓ 21 callers
Function
try_xp
(driver: WebDriver, xpath: str, click: bool=True)
modules/clickers_and_finders.py:128
↓ 18 callers
Function
critical_error_log
Function to log and print critical errors along with datetime stamp
modules/helpers.py:111
↓ 14 callers
Function
check_list
(var: list, var_name: str, options: list=[], min_length: int=0)
modules/validator.py:39
↓ 14 callers
Function
wait_span_click
Finds the span element with the given `text`. - Returns `WebElement` if found, else `False` if not found. - Clicks on it if `click = True
modules/clickers_and_finders.py:28
↓ 10 callers
Function
multi_sel_noWait
- For each text in the `texts`, tries to find and click `span` element with that class. - If `actions` is provided, bot tries to search and A
modules/clickers_and_finders.py:68
↓ 8 callers
Function
scroll_to_view
Scrolls the `element` to view. - `smooth_scroll` will scroll with smooth behavior. - `top` will scroll to the `element` to top of the vie
modules/clickers_and_finders.py:107
↓ 7 callers
Function
find_by_class
Waits for a max of `time` seconds for element to be found, and returns `WebElement` if found, else `Exception` if not found.
modules/clickers_and_finders.py:100
↓ 6 callers
Function
check_int
(var: int, var_name: str, min_value: int=0)
modules/validator.py:24
↓ 5 callers
Function
text_input_by_ID
Enters `value` into the input field with the given `id` if found, else throws NotFoundException. - `time` is the max time to wait for the ele
modules/clickers_and_finders.py:119
↓ 4 callers
Function
ai_error_alert
Function to show an AI error alert and log it.
modules/ai/openaiConnections.py:46
↓ 4 callers
Function
boolean_button_click
Tries to click on the boolean button with the given `text` text.
modules/clickers_and_finders.py:85
↓ 4 callers
Function
convert_to_json
Function to convert data to JSON, if unsuccessful, returns `{"error": "Unable to parse the response as JSON", "data": data}`
modules/helpers.py:255
↓ 4 callers
Function
failed_job
Function to update failed jobs list in excel
runAiBot.py:801
↓ 3 callers
Function
ai_check_error
Function to check if an error occurred. * Takes in `response` of type `ChatCompletion` or `ChatCompletionChunk` * Raises a `ValueError` i
modules/ai/openaiConnections.py:58
↓ 3 callers
Function
answer_common_questions
(label: str, answer: str)
runAiBot.py:434
↓ 3 callers
Function
manual_login_retry
Function to ask and validate manual login
modules/helpers.py:169
↓ 3 callers
Function
run
(total_runs: int)
runAiBot.py:1152
↓ 2 callers
Function
ai_answer_question
Function to generate AI-based answers for questions in a form. Parameters: - `client`: OpenAI client instance. - `question`: The
modules/ai/openaiConnections.py:217
↓ 2 callers
Function
ai_close_openai_client
Function to close an OpenAI client. * Takes in `client` of type `OpenAI` * Returns no value
modules/ai/openaiConnections.py:104
↓ 2 callers
Function
ai_completion
Function that completes a chat and prints and formats the results of the OpenAI API calls. * Takes in `client` of type `OpenAI` * Takes i
modules/ai/openaiConnections.py:151
↓ 2 callers
Function
createChromeSession
(isRetry: bool = False)
modules/open_chrome.py:31
↓ 2 callers
Function
deepseek_answer_question
Function to answer a question using DeepSeek AI. * Takes in `client` of type `OpenAI` - The DeepSeek client * Takes in `question` of type
modules/ai/deepseekConnections.py:179
↓ 2 callers
Function
deepseek_completion
Completes a chat using DeepSeek API and formats the results. * Takes in `client` of type `OpenAI` - The DeepSeek client * Takes in `messa
modules/ai/deepseekConnections.py:58
↓ 2 callers
Function
discard_job
()
runAiBot.py:857
↓ 2 callers
Function
gemini_answer_question
Answers a question using the Gemini API.
modules/ai/geminiConnections.py:130
↓ 2 callers
Function
gemini_completion
Generates content using the Gemini model. * Takes in `model` - The Gemini model object. * Takes in `prompt` of type `str` - The prompt to
modules/ai/geminiConnections.py:58
↓ 2 callers
Function
screenshot
Function to to take screenshot for debugging - Returns screenshot name as String
runAiBot.py:817
↓ 2 callers
Function
try_find_by_classes
(driver: WebDriver, classes: list[str])
modules/clickers_and_finders.py:141
↓ 2 callers
Function
try_linkText
(driver: WebDriver, linkText: str)
modules/clickers_and_finders.py:137
↓ 1 callers
Function
ai_create_openai_client
Function to create an OpenAI client. * Takes no arguments * Returns an `OpenAI` object
modules/ai/openaiConnections.py:71
↓ 1 callers
Function
ai_extract_skills
Function to extract skills from job description using OpenAI API. * Takes in `client` of type `OpenAI` * Takes in `job_description` of ty
modules/ai/openaiConnections.py:196
↓ 1 callers
Function
ai_get_models_list
Function to get list of models available in OpenAI API. * Takes in `client` of type `OpenAI` * Returns a `list` object
modules/ai/openaiConnections.py:120
↓ 1 callers
Function
answer_questions
(modal: WebElement, questions_list: set, work_location: str, job_description: str | None = None )
runAiBot.py:440
↓ 1 callers
Function
apply_filters
Function to apply job search filters
runAiBot.py:206
↓ 1 callers
Function
apply_to_jobs
(search_terms: list[str])
runAiBot.py:867
↓ 1 callers
Function
calculate_date_posted
Function to calculate date posted from string. Returns datetime object | None if unable to calculate | ValueError if time_string is invalid
modules/helpers.py:187
↓ 1 callers
Function
check_blacklist
(rejected_jobs: set, job_id: str, company: str, blacklisted_companies: set)
runAiBot.py:332
↓ 1 callers
Function
clickFollowingButtons
()
modules/javascript/unfollow_companies.js:3
↓ 1 callers
Function
company_search_click
Tries to search and Add the company to company filters list.
modules/clickers_and_finders.py:147
↓ 1 callers
Function
deepseek_create_client
Creates a DeepSeek client using the OpenAI compatible API. * Returns an OpenAI-compatible client configured for DeepSeek
modules/ai/deepseekConnections.py:13
↓ 1 callers
Function
deepseek_extract_skills
Function to extract skills from job description using DeepSeek API. * Takes in `client` of type `OpenAI` - The DeepSeek client * Takes in
modules/ai/deepseekConnections.py:144
↓ 1 callers
Function
deepseek_model_supports_temperature
Checks if the specified DeepSeek model supports the temperature parameter. * Takes in `model_name` of type `str` - The name of the DeepSeek m
modules/ai/deepseekConnections.py:48
↓ 1 callers
Function
external_apply
Function to open new tab and save external job application links
runAiBot.py:755
↓ 1 callers
Function
extract_years_of_experience
(text: str)
runAiBot.py:357
↓ 1 callers
Function
find_default_profile_directory
Dynamically finds the default Google Chrome 'User Data' directory path across Windows, macOS, and Linux, regardless of OS version. Retur
modules/helpers.py:70
↓ 1 callers
Function
follow_company
Function to follow or un-follow easy applied companies based om `follow_companies`
runAiBot.py:787
↓ 1 callers
Function
gemini_create_client
Configures the Gemini client and validates the selected model. * Returns a configured Gemini model object or None if an error occurs.
modules/ai/geminiConnections.py:24
↓ 1 callers
Function
gemini_extract_skills
Extracts skills from a job description using the Gemini model. * Takes in `model` - The Gemini model object. * Takes in `job_description`
modules/ai/geminiConnections.py:115
↓ 1 callers
Function
gemini_get_models_list
Lists available Gemini models that support content generation.
modules/ai/geminiConnections.py:9
↓ 1 callers
Function
get_applied_job_ids
Function to get a `set` of applied job's Job IDs * Returns a set of Job IDs from existing applied jobs history csv file
runAiBot.py:167
↓ 1 callers
Function
get_default_temp_profile
()
modules/helpers.py:60
↓ 1 callers
Function
get_job_description
# Job Description Function to extract job description from About the Job. ### Returns: - `jobDescription: str | 'Unknown'` - `exp
runAiBot.py:367
↓ 1 callers
Function
get_job_main_details
# Function to get job main details. Returns a tuple of (job_id, title, company, work_location, work_style, skip) * job_id: Job ID * t
runAiBot.py:282
↓ 1 callers
Function
get_log_path
Function to replace '//' with '/' for logs path
modules/helpers.py:118
↓ 1 callers
Function
get_page_info
Function to get pagination element and current page number
runAiBot.py:265
↓ 1 callers
Function
is_logged_in_GPT
()
modules/__deprecated__/resume_generator.py:26
↓ 1 callers
Function
is_logged_in_LN
Function to check if user is logged-in in LinkedIn * Returns: `True` if user is logged-in or `False` if not
runAiBot.py:106
↓ 1 callers
Function
login_GPT
()
modules/__deprecated__/resume_generator.py:47
↓ 1 callers
Function
login_LN
Function to login for LinkedIn * Tries to login using given `username` and `password` from `secrets.py` * If failed, tries to login using
runAiBot.py:119
↓ 1 callers
Function
main
()
runAiBot.py:1174
↓ 1 callers
Function
make_directories
Function to create missing directories
modules/helpers.py:38
↓ 1 callers
Function
model_supports_temperature
Checks if the specified model supports the temperature parameter. Args: model_name (str): The name of the AI model. Ret
modules/ai/openaiConnections.py:138
↓ 1 callers
Function
open_resume_chat
()
modules/__deprecated__/resume_generator.py:79
↓ 1 callers
Function
resume_main
()
modules/__deprecated__/resume_generator.py:97
↓ 1 callers
Function
set_search_location
Function to set search location
runAiBot.py:184
↓ 1 callers
Function
submitted_jobs
Function to create or update the Applied jobs CSV file, once the application is submitted successfully
runAiBot.py:832
↓ 1 callers
Function
text_input
(actions: ActionChains, textInputEle: WebElement | bool, value: str, textFieldName: str = "Text")
modules/clickers_and_finders.py:160
↓ 1 callers
Function
upload_resume
(modal: WebElement, resume: str)
runAiBot.py:427
↓ 1 callers
Function
validate_config
Runs all validation functions to validate all variables in the config files.
modules/validator.py:221
↓ 1 callers
Function
validate_personals
Validates all variables in the `/config/personals.py` file.
modules/validator.py:51
↓ 1 callers
Function
validate_questions
Validates all variables in the `/config/questions.py` file.
modules/validator.py:79
↓ 1 callers
Function
validate_search
Validates all variables in the `/config/search.py` file.
modules/validator.py:107
↓ 1 callers
Function
validate_secrets
Validates all variables in the `/config/secrets.py` file.
modules/validator.py:154
↓ 1 callers
Function
validate_settings
Validates all variables in the `/config/settings.py` file.
modules/validator.py:186
Function
ai_check_job_relevance
( client: OpenAI, job_description: str, about_company: str, stream: bool = stream_output )
modules/ai/openaiConnections.py:314
Function
ai_evaluate_resume
( client: OpenAI, job_description: str, about_company: str, required_skills: dict, resume: str,
modules/ai/openaiConnections.py:294
Function
ai_gen_experience
( client: OpenAI, job_description: str, about_company: str, required_skills: dict, user_experien
modules/ai/openaiConnections.py:259
Function
ai_generate_coverletter
Function to generate resume. Takes in user experience and template info from config.
modules/ai/openaiConnections.py:281
Function
ai_generate_resume
Function to generate resume. Takes in user experience and template info from config.
modules/ai/openaiConnections.py:269
Function
clickFollowingButtons2
()
modules/javascript/unfollow_companies.js:42
Function
clickFollowingButtons3
()
modules/javascript/unfollow_companies.js:56
Function
clickFollowingButtonsExpanded
()
modules/javascript/unfollow_companies.js:15
Function
convert_to_lakhs
Converts str value to lakhs, no validations are done except for length and stripping. Examples: * "100000" -> "1.00" * "101,000" -> "
modules/helpers.py:236
Function
create_custom_resume
(job_description)
modules/__deprecated__/resume_generator.py:91
Function
create_resume_docx
(user_details, summary, experience, projects, skills, certificates)
modules/resumes/generator.py:20
Function
enter_prompt
(prompt)
modules/__deprecated__/resume_generator.py:88
Function
get_applied_jobs
Retrieves a list of applied jobs from the applications history CSV file. Returns a JSON response containing a list of jobs, each with de
app.py:18
Function
home
Displays the home page of the application.
app.py:13
Function
multi_sel
- For each text in the `texts`, tries to find and click `span` element with that text. - Will spend a max of `time` seconds in searching for
modules/clickers_and_finders.py:50
Function
update_applied_date
Updates the 'Date Applied' field of a job in the applications history CSV file. Args: job_id (str): The Job ID of the job to be upda
app.py:51