forked from amitKr85/project_student_allocation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dump_load_all_skill_set_pik.py
39 lines (36 loc) · 1.01 KB
/
dump_load_all_skill_set_pik.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
import urllib.request
from bs4 import BeautifulSoup
import re
import pickle
# skill_file = open(r"arhived_modules\LinkedIn-Skills-Crawler-master\output\all_skills.txt","r",encoding="utf-8")
# # skill_file = open("sample.txt","r")
# skills = skill_file.read().split('\n')
#
# skill_set = set()
#
# for skill in skills:
# print(skill)
# skill_set.add(skill.lower())
#
#
# def load_skill_dic():
# skill_dic_file = open("pickled_data/skill_dic.pickle","rb")
# skill_list = pickle.load(skill_dic_file)
# skill_dic_file.close()
# return skill_list
#
#
# skill_list = load_skill_dic()
#
# for skill in skill_list:
# skill_set.add(skill.lower())
#
# skill_set_file = open("pickled_data/all_skill_set.pickle","wb")
# pickle.dump(skill_set,skill_set_file)
# skill_set_file.close()
skill_set_file = open("pickled_data/all_skill_set.pickle","rb")
skill_set = pickle.load(skill_set_file)
skill_set_file.close()
while True:
st = input("skill:")
print(st.lower() in skill_set)