forked from Priyansh-15/Job_Helper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
140 lines (105 loc) · 3.31 KB
/
main.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
import threading
from Google import Google_scraper
from Adobe import Adobe_scraper
from Amazon import Amazon_scraper
from Cisco import Cisco_scraper
import evaluation
import json_convertor
def internship_data(user_skill):
t1 = threading.Thread(target=Google_scraper.Google_job_internship_scrape)
t2 = threading.Thread(target=Amazon_scraper.Amazon_job_internship_scrape)
t3 = threading.Thread(target=Cisco_scraper.Cisco_job_internship_scrape)
t4 = threading.Thread(target=Adobe_scraper.Adobe_job_internship_scrape)
t1.start()
t2.start()
t3.start()
t4.start()
t1.join()
t2.join()
t3.join()
t4.join()
print("Done! internship scrape")
print(user_skill[0])
try:
evaluation.search('Amazon_internship_openings',user_skill)
except:
print("error amazon")
try:
evaluation.search('Google_internship_openings',user_skill)
except:
print("error google")
try:
evaluation.search('Adobe_internship_openings',user_skill)
except:
print("error adobe")
try:
evaluation.search('Cisco_internship_openings',user_skill)
except:
print("error cisco")
fetched=json_convertor.main_conv('internship_jobs.json')
return fetched
def newgrad_data(user_skill):
t1 = threading.Thread(target=Google_scraper.Google_job_newgrad_scrape)
t2 = threading.Thread(target=Amazon_scraper.Amazon_job_newgrad_scrape)
t3 = threading.Thread(target=Cisco_scraper.Cisco_job_newgrad_scrape)
t4 = threading.Thread(target=Adobe_scraper.Adobe_job_newgrad_scrape)
t1.start()
t2.start()
t3.start()
t4.start()
t1.join()
t2.join()
t3.join()
t4.join()
print("Done! newgrad")
try:
evaluation.search('Amazon_newgrad_openings',user_skill)
except:
print("error amazon")
try:
evaluation.search('Google_newgrad_openings',user_skill)
except:
print("error google")
try:
evaluation.search('Adobe_newgrad_openings',user_skill)
except:
print("error adobe")
try:
evaluation.search('Cisco_newgrad_openings',user_skill)
except:
print("error cisco")
fetched=json_convertor.main_conv1('newgrad_jobs.json')
return fetched
def experienced_data(user_skill):
t1 = threading.Thread(target=Google_scraper.Google_job_experienced_scrape)
t2 = threading.Thread(target=Amazon_scraper.Amazon_job_experienced_scrape)
t3 = threading.Thread(target=Cisco_scraper.Cisco_job_experienced_scrape)
t4 = threading.Thread(target=Adobe_scraper.Adobe_job_experienced_scrape)
t1.start()
t2.start()
t3.start()
t4.start()
t1.join()
t2.join()
t3.join()
t4.join()
print("Done! experienced")
try:
evaluation.search('Amazon_experienced_openings',user_skill)
except:
print("error amazon")
try:
evaluation.search('Google_experienced_openings',user_skill)
except:
print("error google")
try:
evaluation.search('Adobe_experienced_openings',user_skill)
except:
print("error adobe")
try:
evaluation.search('Cisco_experienced_openings',user_skill)
except:
print("error cisco")
fetched=json_convertor.main_conv2('experienced_jobs.json')
return fetched
# experienced_data()