Commit b05cfa0e by nnnghia98

create crawl log

parent 0ba64d74
...@@ -26,7 +26,10 @@ class CrawlData ...@@ -26,7 +26,10 @@ class CrawlData
# Job title # Job title
job_title = job_page.css("div.top-job-info h1").text.strip job_title = job_page.css("div.top-job-info h1").text.strip
puts job_title
crawl_job_title_logger = ActiveSupport::Logger.new("log/crawl_data.log")
crawl_job_title_logger.info "#{job_title}"
# Job post date # Job post date
job_post_date = job_page.css("div.datepost span").text job_post_date = job_page.css("div.datepost span").text
......
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