INNER CODE UNIT · Python
isLoggedIn
wodsuz/EasyApplyJobsBot · linkedin.py:106
def isLoggedIn(self) -> bool:
self.driver.get('https://www.linkedin.com/feed')
try:
self.driver.find_element(By.XPATH,'//*[@id="ember14"]')
return True
except Exception:
pass
return False
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.")