Skip to content

Commit

Permalink
Fixed etusoft job count
Browse files Browse the repository at this point in the history
  • Loading branch information
RaresCode committed Sep 11, 2023
1 parent aae1967 commit e62b7b2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions sites/etusoft.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ def __init__(self, company_name: str, url: str, company_logo_url: str):
"""
Initialize the BS4Scraper class.
"""
self.website_url = url
self.url = url
self.job_count = 1
super().__init__(company_name, company_logo_url)

def get_response(self):
self.get_content(self.website_url)
self.get_content(self.url)

def scrape_jobs(self):
"""
Expand All @@ -43,7 +44,9 @@ def format_data(self):
Iterate over all job details and send to the create jobs dictionary.
"""
for job_title in self.job_titles:
self.create_jobs_dict(job_title, self.website_url, "România", "Oradea")
job_url = self.url + "#" + str(self.job_count)
self.create_jobs_dict(job_title, job_url, "România", "Oradea")
self.job_count += 1

if __name__ == "__main__":
URL = 'https://www.etusoft.com/locuridemunca.html'
Expand Down

0 comments on commit e62b7b2

Please sign in to comment.