Skip to content

Commit 032912b

Browse files
committed
correction of out of range error
1 parent d79d3b3 commit 032912b

File tree

2 files changed

+24
-26
lines changed

2 files changed

+24
-26
lines changed
Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,23 @@
11
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
2+
SEN Tutor,"SW1, South West London, SW1A 2DD",Recently,Deckers
3+
"SW1, South West London, SW1A 2DD",Recently,�28 - �33 per hour,Deckers
4+
Recently,�28 - �33 per hour,SEN Tutor,Targeted Provision Ltd
5+
�28 - �33 per hour,SEN Tutor,"SW1, South West London, SW1A 2DD",Deckers
6+
SEN Tutor,"SW1, South West London, SW1A 2DD",Recently,Deckers
7+
"SW1, South West London, SW1A 2DD",Recently,�28 - �33 per hour,Deckers
48
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
9+
�28 - �33 per hour,Supply Chain Administrator,"WC2, Central London, WC2N 5DU",EMBS
10+
Supply Chain Administrator,"WC2, Central London, WC2N 5DU",Recently,Deckers
11+
"WC2, Central London, WC2N 5DU",Recently,Unspecified,CV Screen Ltd
12+
Recently,Unspecified,Accounts Payable Assistant,Deckers
13+
Unspecified,Accounts Payable Assistant,"St James, WC2N 5DU",Deckers
14+
Accounts Payable Assistant,"St James, WC2N 5DU",Recently,Webhelp UK
15+
"St James, WC2N 5DU",Recently,Unspecified,Applause IT Limited
16+
Recently,Unspecified,Total Rewards Analyst,Johnson & Associates Rec Specialists Ltd
17+
Unspecified,Total Rewards Analyst,"WC2, Central London, WC2N 5DU",Johnson & Associates Rec Specialists Ltd
18+
Total Rewards Analyst,"WC2, Central London, WC2N 5DU",Recently,Johnson & Associates Rec Specialists Ltd
2119
"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
20+
Recently,Unspecified,SEN Tutor,Elliot Marsh
21+
Unspecified,SEN Tutor,"WC2, Central London, WC2N 5DU",Elliot Marsh
22+
SEN Tutor,"WC2, Central London, WC2N 5DU",Recently,Get Recruited (UK) Ltd
23+
"WC2, Central London, WC2N 5DU",Recently,�28 - �33 per hour,Elliot Marsh

WEB SCRAPING/WebScraping-Data-Analytics/pydataanalytics.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@
2323
with open('job_data_2.csv', mode='w', newline='') as file:
2424
writer = csv.writer(file)
2525
writer.writerow(['Job Title', 'Location', 'Salary', 'Company Name']) # header row
26-
for i in range(0, len(job_titles), 3):
26+
min_length = min(len(job_titles), len(company_name))
27+
for i in range(0, min_length - 3):
2728
job_title = job_titles[i].text.strip()
2829
location = job_titles[i+1].text.strip()
2930
salary = job_titles[i+2].text.strip()
30-
company = company_name[i//3].text.strip()
31+
company = company_name[i+3].text.strip()
3132
writer.writerow([job_title, location, salary, company])
32-
print(job_title)
33+
# print(job_title)

0 commit comments

Comments
 (0)