tomosia_amanaplus_crawl 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/tomosia_amanaplus_crawl.rb +2 -3
- data/lib/tomosia_amanaplus_crawl/version.rb +1 -1
- data/tomosia_amanaplus_crawl.gemspec +0 -1
- metadata +1 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 43ec94c9458a2aaf5554bf3eac7728fd8fe4a7e3850a061636ef5bf73569965e
|
|
4
|
+
data.tar.gz: d532f0301d3862807918bd3f1785bf0770302702dfbc4d0d0240f1ac1397a9fa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d5f54508d8a41443488ae98f9ba966317ad84a001ce1abbc4ad12e5f8c01a6e939670c5900dfd4467e7a16bb215942c96a44c01103ec906f21d839a42f78337a
|
|
7
|
+
data.tar.gz: 4649b6ebed46e5aaddb54d3e2337e88bc4a98cd0399efbc2b4e49aaeaef088bb38eb29e592d60de6d6c7ad4ab090039558860514946f754de491f39427ae06ed
|
|
@@ -2,7 +2,6 @@ require "tomosia_amanaplus_crawl/version"
|
|
|
2
2
|
|
|
3
3
|
module TomosiaAmanaplusCrawl
|
|
4
4
|
require 'nokogiri'
|
|
5
|
-
require 'httparty'
|
|
6
5
|
require 'open-uri'
|
|
7
6
|
require 'fileutils'
|
|
8
7
|
require 'spreadsheet'
|
|
@@ -63,7 +62,7 @@ module TomosiaAmanaplusCrawl
|
|
|
63
62
|
|
|
64
63
|
# tải hình và cập nhật lại size
|
|
65
64
|
def downloadImages(images, destination)
|
|
66
|
-
path = "#{destination}
|
|
65
|
+
path = "#{destination}//Downloads" # lưu hình ở folder Downloads
|
|
67
66
|
Dir.mkdir path unless File.exist? path
|
|
68
67
|
|
|
69
68
|
threads = []
|
|
@@ -94,7 +93,7 @@ module TomosiaAmanaplusCrawl
|
|
|
94
93
|
end
|
|
95
94
|
|
|
96
95
|
def writeToExcel(images, destination)
|
|
97
|
-
path = "#{destination}
|
|
96
|
+
path = "#{destination}//File Excel" # lưu file ở folder File Excel
|
|
98
97
|
Dir.mkdir path unless File.exist? path
|
|
99
98
|
|
|
100
99
|
book = Spreadsheet::Workbook.new
|
|
@@ -14,7 +14,6 @@ Gem::Specification.new do |spec|
|
|
|
14
14
|
spec.executables = 'tomosia_amanaplus_crawl'
|
|
15
15
|
spec.require_paths = ["lib"]
|
|
16
16
|
|
|
17
|
-
spec.add_runtime_dependency('httparty', '0.18.1')
|
|
18
17
|
spec.add_runtime_dependency('nokogiri', '1.10.10')
|
|
19
18
|
spec.add_runtime_dependency('spreadsheet', '1.2.6')
|
|
20
19
|
spec.add_runtime_dependency('thor')
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tomosia_amanaplus_crawl
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nhat Huy
|
|
@@ -10,20 +10,6 @@ bindir: exe
|
|
|
10
10
|
cert_chain: []
|
|
11
11
|
date: 2020-08-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
|
-
- !ruby/object:Gem::Dependency
|
|
14
|
-
name: httparty
|
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
|
16
|
-
requirements:
|
|
17
|
-
- - '='
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.18.1
|
|
20
|
-
type: :runtime
|
|
21
|
-
prerelease: false
|
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
-
requirements:
|
|
24
|
-
- - '='
|
|
25
|
-
- !ruby/object:Gem::Version
|
|
26
|
-
version: 0.18.1
|
|
27
13
|
- !ruby/object:Gem::Dependency
|
|
28
14
|
name: nokogiri
|
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|