Spaces:
Sleeping
Sleeping
Update wuzzuf_scraper.py
Browse files- wuzzuf_scraper.py +0 -7
wuzzuf_scraper.py
CHANGED
@@ -37,13 +37,6 @@ def Wuzzuf_scrapping(job_type , job_num,driver):
|
|
37 |
soup = BeautifulSoup(data.content, 'html.parser')
|
38 |
Title = soup.find_all('h2', {'class': 'css-m604qf'})
|
39 |
|
40 |
-
for x in range(len(Title)):
|
41 |
-
title.append(Title[x].find('a').text.strip())
|
42 |
-
loc = soup.find_all('span', {'class': 'css-5wys0k'})[x].text.split(',')
|
43 |
-
location.append(loc[0].strip())
|
44 |
-
country.append(loc[-1].strip())
|
45 |
-
links.append('https://wuzzuf.net' + Title[x].find('a').attrs['href'])
|
46 |
-
|
47 |
except requests.exceptions.RequestException as e:
|
48 |
# print(f"Request failed: {e}")
|
49 |
continue # Skip to the next page if there's an error
|
|
|
37 |
soup = BeautifulSoup(data.content, 'html.parser')
|
38 |
Title = soup.find_all('h2', {'class': 'css-m604qf'})
|
39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
except requests.exceptions.RequestException as e:
|
41 |
# print(f"Request failed: {e}")
|
42 |
continue # Skip to the next page if there's an error
|