forked from nicolomantini/LinkedIn-Easy-Apply-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
quickstart.py
53 lines (40 loc) · 1.38 KB
/
quickstart.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
from easyapplybot import EasyApplyBot
import loginGUI
"""
define if ou want to use the GUI or not (True or False)
"""
useGUI = False
"""
If GUI is False enter your credentials and preferences manually
"""
if useGUI == False:
username = '' # LinkedIn Username
password = '' # LinkedIn Password
language = 'en' # LinkedIn default language (en, es, pt)
position = 'C# Developer' # Job position
location = 'Germany' # location where to apply (e.g. Barcelona)
resumepath = 'assets/pdf/resume.pdf'
resumeloctn = resumepath # Directory path where your document is
"""
If GUI is True, just run the script
"""
if useGUI == True:
app = loginGUI.LoginGUI()
app.mainloop()
# get user info info
username = app.frames["StartPage"].username
password = app.frames["StartPage"].password
language = app.frames["PageOne"].language
position = app.frames["PageTwo"].position
location_code = app.frames["PageThree"].location_code
if location_code == 1:
location = app.frames["PageThree"].location
else:
location = app.frames["PageFour"].location
resumeloctn = app.frames["PageFive"].resumeloctn
print(username, password, language, position,
location_code, location, resumeloctn)
# start bot
bot = EasyApplyBot(username, password, language,
position, location, resumeloctn)
bot.start_apply()