Commit 241d47d2 by thanhnd

edit rake

parent 7600ce5d
Pipeline #464 failed with stages
in 0 seconds
...@@ -62,10 +62,8 @@ namespace :crawler do ...@@ -62,10 +62,8 @@ namespace :crawler do
companyid = Company.find_by(company_name: company_name.text) companyid = Company.find_by(company_name: company_name.text)
Job.find_or_create_by(area_id: area.id, city_id: city.id , industry_id: industryid.id, company_id: companyid.id, job_name: title.text, salary: salary.text, deadline: deadline.text, level: level.text, experience: experience.text.strip, last_updated: updated_date.text.strip, description: description.text) Job.find_or_create_by(area_id: area.id, city_id: city.id , industry_id: industryid.id, company_id: companyid.id, job_name: title.text, salary: salary.text, deadline: deadline.text, level: level.text, experience: experience.text.strip, last_updated: updated_date.text.strip, description: description.text)
end
list_url = nextpage[0]["href"] list_url = nextpage[0]["href"]
end end
end end
end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment