Skip to content

Commit

Permalink
Merge pull request #46 from marklocklear/skylightJobs
Browse files Browse the repository at this point in the history
fixed link to go to job description
  • Loading branch information
marklocklear committed Aug 12, 2019
2 parents 48f6251 + 02138f2 commit aed9b13
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/tasks/get_jobs.rake
Expand Up @@ -404,9 +404,8 @@ task :get_jobs => :environment do
jobs.css('li').each do |char_element|
title = char_element.text
if title.include? 'Remote'
link = char_element.css('a').first['href']
clickLink = "https://skylight.workable.com" + link
job_page = Nokogiri::HTML(open(clickLink.to_s))
link = url + char_element.css('a').first['href']
job_page = Nokogiri::HTML(open(link.to_s))
description = job_page.xpath('/html/body/main/section[3]/ul[1]').text
company = 'Skylight'
jobs_array << [title, link, description, company]
Expand Down

0 comments on commit aed9b13

Please sign in to comment.