Spaces:
Runtime error
Runtime error
Nguyen Quang Truong
commited on
Commit
·
0e86b1d
1
Parent(s):
a286baa
[update] utils
Browse files
utils.py
CHANGED
|
@@ -73,7 +73,7 @@ def save_data(dict_jd):
|
|
| 73 |
|
| 74 |
def info_job(driver):
|
| 75 |
|
| 76 |
-
id=0
|
| 77 |
|
| 78 |
num_job= driver.find_element(By.XPATH, '//div[@class="jobsearch-JobCountAndSortPane-jobCount css-13jafh6 eu4oa1w0"]//span').text
|
| 79 |
num_job_=re.sub(r'\D', '', num_job)
|
|
@@ -131,7 +131,8 @@ def info_job(driver):
|
|
| 131 |
parser = BeautifulSoup(get_html, 'html.parser')
|
| 132 |
jd = parser.get_text()
|
| 133 |
content_jd += jd.replace("\n"," ").replace(" ","")
|
| 134 |
-
id+=1
|
|
|
|
| 135 |
|
| 136 |
try:
|
| 137 |
dict_job[id]
|
|
|
|
| 73 |
|
| 74 |
def info_job(driver):
|
| 75 |
|
| 76 |
+
# id=0
|
| 77 |
|
| 78 |
num_job= driver.find_element(By.XPATH, '//div[@class="jobsearch-JobCountAndSortPane-jobCount css-13jafh6 eu4oa1w0"]//span').text
|
| 79 |
num_job_=re.sub(r'\D', '', num_job)
|
|
|
|
| 131 |
parser = BeautifulSoup(get_html, 'html.parser')
|
| 132 |
jd = parser.get_text()
|
| 133 |
content_jd += jd.replace("\n"," ").replace(" ","")
|
| 134 |
+
# id+=1
|
| 135 |
+
id=name_company+'@'+name_job
|
| 136 |
|
| 137 |
try:
|
| 138 |
dict_job[id]
|