adops_report_scrapper 0.2.15 → 0.2.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/adops_report_scrapper.gemspec +1 -1
- data/lib/adops_report_scrapper/tremor_client.rb +2 -2
- data/lib/adops_report_scrapper/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 946d431b163ad6d8cbe97ad6e3ed71dca48343c1
|
4
|
+
data.tar.gz: 611639ffa42c933a3c4ff9992fcbf47e93d6eff8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47b1224876d51997d76280c77eda361774c16f19d274c49c68a156d7cabc22ba26045c1f8c0b9e3113f87c6433823c46cb599a5e03f1c32ed7f4cb8d2586ff46
|
7
|
+
data.tar.gz: 0726c276afb3f9dde4ca44028476727c32c9038dce0a2bdcd58c5b6dc4e80468415e31ac4083bbb72cb3b61d23ca7d7f8c16c81156b2774f5babaa574f0f957a
|
data/Gemfile
CHANGED
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_dependency 'google-api-client', '~> 0.8.2'
|
31
31
|
spec.add_dependency 'cheddar', '~> 1.0'
|
32
32
|
spec.add_dependency 'roo', '~> 2.4.0'
|
33
|
-
spec.add_dependency 'selenium-webdriver', '~> 3.
|
33
|
+
spec.add_dependency 'selenium-webdriver', '~> 3.4.0'
|
34
34
|
spec.add_dependency 'mail', '~> 2.6.4'
|
35
35
|
|
36
36
|
spec.add_development_dependency "bundler", "~> 1.8"
|
@@ -66,7 +66,7 @@ class AdopsReportScrapper::TremorClient < AdopsReportScrapper::BaseClient
|
|
66
66
|
flag_holding = true
|
67
67
|
60.times do |_i| # wait 20 min
|
68
68
|
begin
|
69
|
-
@client.find(:xpath, '//*[text()="
|
69
|
+
@client.find(:xpath, '//*[text()="Cancel Report"]')
|
70
70
|
rescue Exception => e
|
71
71
|
flag_holding = false
|
72
72
|
break
|
@@ -78,7 +78,7 @@ class AdopsReportScrapper::TremorClient < AdopsReportScrapper::BaseClient
|
|
78
78
|
|
79
79
|
def extract_data_from_report
|
80
80
|
page = Nokogiri::HTML @client.html
|
81
|
-
rows = page.xpath '//table[@id="
|
81
|
+
rows = page.xpath '//table[@id="DataTables_Table_0"]/*/tr'
|
82
82
|
@data = rows.map { |tr| tr.css('td,th').map { |td| td.text } }
|
83
83
|
end
|
84
84
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adops_report_scrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stayman Hou
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -170,14 +170,14 @@ dependencies:
|
|
170
170
|
requirements:
|
171
171
|
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: 3.
|
173
|
+
version: 3.4.0
|
174
174
|
type: :runtime
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: 3.
|
180
|
+
version: 3.4.0
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: mail
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|