INNER CODE UNIT · Python
generateUrls
wodsuz/EasyApplyJobsBot · linkedin.py:115
def generateUrls(self) -> None:
if not os.path.exists('data'):
os.makedirs('data')
try:
with open('data/urlData.txt', 'w',encoding="utf-8" ) as file:
linkedinJobLinks = utils.LinkedinUrlGenerate().generateUrlLinks()
for url in linkedinJobLinks:
file.write(url+ "\n")
utils.prGreen("✅ Apply urls are created successfully, now the bot will visit those urls.")
except Exception:
utils.prRed("❌ Couldn't generate urls, make sure you have editted config file line 25-39")
def linkJobApply(self) -> None:
self.generateUrls()
countApplied = 0
countJobs = 0
countBlacklisted = 0
countAlreadyApplied = 0