refactor code
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
-
-
resolved all discussions
Toggle commit list -
-
Toggle commit list
-
merged
Toggle commit list
Step 1. Fetch and check out the branch for this merge request
git fetch origin git checkout -b crawler origin/crawler
Step 2. Review the changes locally
Step 3. Merge the branch and fix any conflicts that come up
git checkout master git merge --no-ff crawler
Step 4. Push the result of the merge to GitLab
git push origin master
Note that pushing to GitLab requires write access to this repository.
Tip: You can also checkout merge requests locally by following these guidelines.
| 1 | 1 | require "open-uri" |
| 2 | 2 | |
| 3 | 3 | namespace :crawl do |
| 4 | desc "crawl industries and locations" | |
| 5 | task crawl_industries_locations: :environment do | |
| 4 | desc "crawl industries locations jobs" | |
| 5 | task :crawl_industries_locations_jobs, [:page, :link] => [:environment] do |task, args| | |
| 6 | args.with_defaults(link: 'https://careerbuilder.vn/viec-lam/tat-ca-viec-lam-vi.html') | |
| 6 | 7 | crawl_industries_and_locations |
| 8 | job_links = get_job_links(args[:page].to_i, args[:link]) | |
| 9 | job_links.each do |link| | |
| 10 | break if link.empty? | |
Please
register
or
sign in
to reply
|
||
resolved all discussions
resolved all discussions
added 1 commit
added 1 commit
mentioned in commit ed8bc042
mentioned in commit ed8bc042
merged
merged