Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

self.saveCookies() issue #58

Open
Elefantex opened this issue Dec 27, 2023 · 2 comments
Open

self.saveCookies() issue #58

Elefantex opened this issue Dec 27, 2023 · 2 comments

Comments

@Elefantex
Copy link

I have this error, it does the login then it is stuck in the main screen until it closes.
This is the log in the console.
←[93m🤖 Thanks for using Easy Apply Jobs bot, for more information you can visit our site - www.automated-bots.com←[00m
←[93m🌐 Bot will run in Chrome browser and log in Linkedin for you.←[00m

DevTools listening on ws://127.0.0.1:62505/devtools/browser/117d1d49-02dc-411c-97ef-b6efcccef074
[14208:8144:1227/110847.132:ERROR:gl_utils.cc(412)] [.WebGL-00001F9402089C00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels
[14208:8144:1227/110848.169:ERROR:gl_utils.cc(412)] [.WebGL-00001F9400F8E200]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels
[14208:8144:1227/110848.502:ERROR:gl_utils.cc(412)] [.WebGL-00001F940208B800]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels
[14208:8144:1227/110848.581:ERROR:gl_utils.cc(412)] [.WebGL-00001F9402868000]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels (this message will no longer repeat)
🔄 Trying to log in Linkedin...
Traceback (most recent call last):
File "C:\Users\Samuel\Desktop\Proyectos\Nueva carpeta\EasyApplyJobsBot\linkedin.py", line 258, in
Linkedin().linkJobApply()
File "C:\Users\Samuel\Desktop\Proyectos\Nueva carpeta\EasyApplyJobsBot\linkedin.py", line 33, in init
self.saveCookies()
File "C:\Users\Samuel\Desktop\Proyectos\Nueva carpeta\EasyApplyJobsBot\linkedin.py", line 48, in saveCookies
pickle.dump(self.driver.get_cookies() , open(self.cookies_path,"wb"))
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Samuel\Desktop\Proyectos\Nueva carpeta\EasyApplyJobsBot\cookies/4d7c7a2dec216a5fda3c21df674d3eaa.pkl'

@Elefantex
Copy link
Author

Fixed:
linkedin.py

import os

def saveCookies(self):
if not os.path.exists(os.path.dirname(self.cookies_path)):
os.makedirs(os.path.dirname(self.cookies_path))
pickle.dump(self.driver.get_cookies(), open(self.cookies_path, "wb"))

@hilda04
Copy link

hilda04 commented Jan 16, 2024

Or just comment out/delete all cookies lines:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants