File size: 887 Bytes
af07018
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import requests
from bs4 import BeautifulSoup
# Set up the URL and parameters for the request
url = "https://www.indeed.com/jobs?q=All job_listings&l=Uae"
params = {
    'jk': '',
    'start': 0,
    'vjs': 'true'
}
# Make the request and get the response content
response = requests.get(url, params=params)
content = response.text
# Parse the HTML with BeautifulSoup
soup = BeautifulSoup(content, 'html.parser')
# Find the job listings and their details
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 the job details
    print(f"Title: {title}")
    print(f"Company: {company}")
    print(f"Location: {location}\n")