Skip to content

Commit d79d3b3

Browse files
committed
Merge remote-tracking branch 'origin/Godswill' into development
Important merge
2 parents 97911dc + dc7440c commit d79d3b3

File tree

2 files changed

+38
-13
lines changed

2 files changed

+38
-13
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Job Title,Location,Salary,Company Name
2+
SEN Tutor,"SW1, South West London, SW1A 2DD",Recently,Targeted Provision Ltd
3+
�28 - �33 per hour,SEN Tutor,"SW1, South West London, SW1A 2DD",Targeted Provision Ltd
4+
Recently,�28 - �33 per hour,Supply Chain Administrator,Deckers
5+
"WC2, Central London, WC2N 5DU",Recently,Unspecified,Deckers
6+
Accounts Payable Assistant,"St James, WC2N 5DU",Recently,Deckers
7+
Unspecified,Total Rewards Analyst,"WC2, Central London, WC2N 5DU",Targeted Provision Ltd
8+
Recently,Unspecified,SEN Tutor,Deckers
9+
"WC2, Central London, WC2N 5DU",Recently,�28 - �33 per hour,Deckers
10+
CS Operations Administrator - 6 Months FTC,"WC2, Central London, WC2N 5DU",Recently,Deckers
11+
Unspecified,Consumer Relations Team Leader (12 Month FTC),"WC2, Central London, WC2N 5DU",Deckers
12+
Recently,Unspecified,Consumer Relations Team Leader,EMBS
13+
"WC2, Central London, WC2N 5DU",Recently,Unspecified,Deckers
14+
Procurement Specialist,"WC2, Central London, WC2N 5DU",Recently,CV Screen Ltd
15+
Unspecified,Onsite IT Support Engineering (2nd Year),"St James, SW1",Deckers
16+
Posted 15 days ago,�35k - 38k per year + Benefits,"Allocator, UGG (6 months FTC)",Deckers
17+
"WC2, Central London, WC2N 5DU",Recently,Unspecified,Webhelp UK
18+
Finance Manager - eCommerce - Remote Working,"St James, SW1",Posted 14 days ago,Applause IT Limited
19+
�50k - 65k per year + benefits,Senior Learning Experience Manager,"WC2, Central London, WC2N 5DU",Johnson & Associates Rec Specialists Ltd
20+
Recently,Unspecified,Online Trading Assistant,Johnson & Associates Rec Specialists Ltd
21+
"WC2, Central London, WC2N 5DU",Recently,Unspecified,Johnson & Associates Rec Specialists Ltd
22+
Infrastructure Architect,"St James, SW1",Posted 30 days ago,Johnson & Associates Rec Specialists Ltd
23+
Unspecified,Mobile Developer,"St James, WC2N 5DU",Elliot Marsh
24+
Expires in 1 day,Negotiable,Junior Loan Closer,Elliot Marsh
25+
"St James, WC2N 5DX",Reposted 7 days ago,"Up to �45,000 per annum",Get Recruited (UK) Ltd
26+
Loan Closing Associate,"St James, WC2N 5DX",Reposted 34 days ago,Elliot Marsh
Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import csv
12
import requests
23
from bs4 import BeautifulSoup
34

@@ -6,8 +7,6 @@
67

78
r = requests.get(url)
89

9-
#print(r)
10-
1110
# parsing the html to beautiful soup
1211
html_soup= BeautifulSoup(r.content, 'html.parser')
1312

@@ -16,18 +15,18 @@
1615

1716
# Pulling out the needed tags
1817
job_titles =job_details.find_all(['h2','li','dl'])
19-
2018
company_name =job_details.find_all('div', class_='sc-fzoiQi')
2119

2220
total_job_info = job_titles + company_name
2321

24-
# Printing out the content of the tags
25-
26-
for job_title in total_job_info:
27-
print(job_title.text)
28-
29-
30-
31-
32-
33-
22+
# Writing the data to a CSV file
23+
with open('job_data_2.csv', mode='w', newline='') as file:
24+
writer = csv.writer(file)
25+
writer.writerow(['Job Title', 'Location', 'Salary', 'Company Name']) # header row
26+
for i in range(0, len(job_titles), 3):
27+
job_title = job_titles[i].text.strip()
28+
location = job_titles[i+1].text.strip()
29+
salary = job_titles[i+2].text.strip()
30+
company = company_name[i//3].text.strip()
31+
writer.writerow([job_title, location, salary, company])
32+
print(job_title)

0 commit comments

Comments
 (0)