Created
May 27, 2021 10:15
-
-
Save alexshapalov/6db73576d86a135fe91d086b3a47e3a1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Ziprecruiter | |
def start | |
session = Capybara::Session.new(:selenium_chrome_headless) | |
p "Start...." | |
begin | |
job_link = "https://www.ziprecruiter.com/browse/titles/A" | |
session.visit(job_link) | |
# binding.pry | |
#returned_jobs = session.find(:xpath, '//*[@id="resultsCol"]') | |
#returned_jobs.all(:css, 'div.jobsearch-SerpJobCard').each do |job_page| | |
#link_job_details = job_page.find(:css, 'a.jobtitle')[:href] | |
#link_job_details | |
#open_job(link_job_details, session2) | |
#end | |
rescue => exception | |
'Not found ...' | |
puts exception.message | |
puts exception.backtrace.inspect | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment