Skip to content

Commit

Permalink
Added eurotech
Browse files Browse the repository at this point in the history
  • Loading branch information
RaresCode committed Oct 3, 2023
1 parent 613dbfb commit 6179f2b
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
60 changes: 60 additions & 0 deletions sites/eurotech.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#
#
#
# eurotech > https://eurotech-iasi.ro/cariere/

from sites.website_scraper_bs4 import BS4Scraper

class eurotechScraper(BS4Scraper):

"""
A class for scraping job data from eurotech website.
"""
url = 'https://eurotech-iasi.ro/cariere/'
url_logo = 'https://eurotech-iasi.ro/wp-content/uploads/2020/07/eurotech-iasi.ro-main-logo.svg'
company_name = 'eurotech'

def __init__(self):
"""
Initialize the BS4Scraper class.
"""
super().__init__(self.company_name, self.url_logo)

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

def scrape_jobs(self):
"""
Scrape job data from eurotech website.
"""

job_elements = self.get_jobs_elements('css_', "div > div.media-body.rtin-content-area > h3 > a")

self.job_titles = self.get_jobs_details_text(job_elements)
self.job_urls = self.get_jobs_details_href(job_elements)

self.format_data()

def sent_to_future(self):
self.send_to_viitor()

def return_data(self):
self.get_response()
self.scrape_jobs()
return self.formatted_data, self.company_name

def format_data(self):
"""
Iterate over all job details and send to the create jobs dictionary.
"""
for job_title, job_url in zip(self.job_titles, self.job_urls):
self.create_jobs_dict(job_title, job_url, "România", "Iasi")

if __name__ == "__main__":
eurotech = eurotechScraper()
eurotech.get_response()
eurotech.scrape_jobs()
eurotech.sent_to_future()



1 change: 1 addition & 0 deletions tests/module_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
'canopy': 'canopyScraper',
'dentesse': 'dentesseScraper',
'verla': 'verlaScraper',
'eurotech': 'eurotechScraper',

# Add more module names as needed
}

0 comments on commit 6179f2b

Please sign in to comment.