|
|
import requests
|
|
|
from bs4 import BeautifulSoup
|
|
|
|
|
|
url = "https://www.indeed.com/jobs?q=All job_listings&l=Uae"
|
|
|
params = {
|
|
|
'jk': '',
|
|
|
'start': 0,
|
|
|
'vjs': 'true'
|
|
|
}
|
|
|
|
|
|
response = requests.get(url, params=params)
|
|
|
content = response.text
|
|
|
|
|
|
soup = BeautifulSoup(content, 'html.parser')
|
|
|
|
|
|
job_listings = soup.find_all('div', class_='jobsearch-SerpJobCard')
|
|
|
for listing in job_listings:
|
|
|
title = listing.find('a', class_='jobtitle').text
|
|
|
company = listing.find('span', class_='company').text
|
|
|
location = listing.find('div', class_='recJobLoc')['data-rc-loc']
|
|
|
|
|
|
|
|
|
print(f"Title: {title}")
|
|
|
print(f"Company: {company}")
|
|
|
print(f"Location: {location}\n")
|
|
|
|