Commit 332760aa by Hoang Nam Nguyen

crawled data from website

parent cf42d00c
...@@ -5,6 +5,8 @@ git_source(:github) do |repo_name| ...@@ -5,6 +5,8 @@ git_source(:github) do |repo_name|
"https://github.com/#{repo_name}.git" "https://github.com/#{repo_name}.git"
end end
gem 'rubyzip', '>= 1.0.0' # will load new rubyzip version
gem 'zip-zip' # will load compatibility for old rubyzip API.
gem 'nokogiri' gem 'nokogiri'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.1.3' gem 'rails', '~> 5.1.3'
......
...@@ -179,6 +179,8 @@ GEM ...@@ -179,6 +179,8 @@ GEM
websocket-extensions (0.1.2) websocket-extensions (0.1.2)
xpath (2.1.0) xpath (2.1.0)
nokogiri (~> 1.3) nokogiri (~> 1.3)
zip-zip (0.3)
rubyzip (>= 1.0.0)
PLATFORMS PLATFORMS
ruby ruby
...@@ -195,6 +197,7 @@ DEPENDENCIES ...@@ -195,6 +197,7 @@ DEPENDENCIES
pry-byebug pry-byebug
puma (~> 3.7) puma (~> 3.7)
rails (~> 5.1.3) rails (~> 5.1.3)
rubyzip (>= 1.0.0)
sass-rails (~> 5.0) sass-rails (~> 5.0)
selenium-webdriver selenium-webdriver
spring spring
...@@ -203,6 +206,7 @@ DEPENDENCIES ...@@ -203,6 +206,7 @@ DEPENDENCIES
tzinfo-data tzinfo-data
uglifier (>= 1.3.0) uglifier (>= 1.3.0)
web-console (>= 3.3.0) web-console (>= 3.3.0)
zip-zip
BUNDLED WITH BUNDLED WITH
1.15.3 1.15.3
class City < ApplicationRecord class City < ApplicationRecord
end end
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
require 'csv'
require 'net/ftp'
require 'open-uri'
require 'zip'
filename = File.join Rails.root, "jobs.zip"
Zip::ZipFile.open()
\ No newline at end of file
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