Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
veNJOB
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thanh Hung Pham
veNJOB
Commits
5646d137
Commit
5646d137
authored
Jul 03, 2017
by
Thanh Hung Pham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix variable not use and schedule content
parent
d04c9f2f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
config/schedule.rb
+6
-2
lib/tasks/careerbuilder.rb
+1
-1
No files found.
config/schedule.rb
View file @
5646d137
...
@@ -18,6 +18,10 @@
...
@@ -18,6 +18,10 @@
# end
# end
# Learn more: http://github.com/javan/whenever
# Learn more: http://github.com/javan/whenever
env
:PATH
,
ENV
[
'PATH'
]
set
:environment
,
'development'
set
:output
,
{
error:
'log/cron_error_log.log'
,
standard:
'log/cron_log.log'
}
every
1
.
day
,
at:
'12:00 pm'
do
every
1
.
day
,
at:
'12:00 pm'
do
r
unner
'MyModel.task_to_run
'
r
ake
'crawler:load
'
end
end
lib/tasks/careerbuilder.rb
View file @
5646d137
...
@@ -18,7 +18,7 @@ class Careerbuilder
...
@@ -18,7 +18,7 @@ class Careerbuilder
def
crawl
def
crawl
@logger
.
info
(
'Start crawl'
)
@logger
.
info
(
'Start crawl'
)
doc
=
Nokogiri
::
HTML
(
open
(
'http://careerbuilder.vn'
))
doc
=
Nokogiri
::
HTML
(
open
(
@domain
))
import_category
(
doc
)
import_category
(
doc
)
import_city
(
doc
)
import_city
(
doc
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment