Commit 7600ce5d by thanhnd

fix comment's Toi-san rake

parent 05f0132b
Pipeline #463 failed with stages
in 0 seconds
...@@ -15,12 +15,10 @@ namespace :crawler do ...@@ -15,12 +15,10 @@ namespace :crawler do
#get link for next page #get link for next page
np = Nokogiri::HTML(open(list_url)) np = Nokogiri::HTML(open(list_url))
#nextpage = np.css('div.paginationTwoStatus a.right')
nextpage = np.css('.paginationTwoStatus .right') nextpage = np.css('.paginationTwoStatus .right')
puts nextpage[0]["href"] puts nextpage[0]["href"]
#get all links in one page #get all links in one page
#links = page.css('span.jobtitle h3.job a')
links = page.css('.jobtitle .job a') links = page.css('.jobtitle .job a')
area = Area.find(1) area = Area.find(1)
......
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