adops_report_scrapper 0.1.41 → 0.1.42
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +3 -0
- data/lib/adops_report_scrapper/browsi_client.rb +2 -1
- data/lib/adops_report_scrapper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b16294676378efb9242f0ca60c98051e1493cdd6
|
4
|
+
data.tar.gz: 837ea4c4ce23b9887b683d286eef4178c84f318e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2bad45c956099666eb2b8230cb253f77a9ac3cd9f2ccc1699e66583965f90bcf774e65dd56a80165f558586111b3870284d16f5db1a8931024fffeb1cf0af3d
|
7
|
+
data.tar.gz: e1d77391e7ee3f41581193c55eec10b9175c33afbf02d85735db4bd4cd1af592dfef5a0a25461af66c93a353b7c18dff7dbf400993ffd3d0a62223f89f2d522e
|
data/CHANGELOG
CHANGED
@@ -16,6 +16,7 @@ class AdopsReportScrapper::BrowsiClient < AdopsReportScrapper::BaseClient
|
|
16
16
|
@client.fill_in 'Email', :with => @login
|
17
17
|
@client.fill_in 'Password', :with => @secret
|
18
18
|
@client.find(:xpath, '//*[text()="Login"]').click
|
19
|
+
sleep 10
|
19
20
|
begin
|
20
21
|
@client.find :css, '.ico-calendar'
|
21
22
|
rescue Exception => e
|
@@ -34,7 +35,7 @@ class AdopsReportScrapper::BrowsiClient < AdopsReportScrapper::BaseClient
|
|
34
35
|
endDate: (@date.to_time+86400-1).utc.strftime('%FT%T.999Z')
|
35
36
|
}
|
36
37
|
@client.visit "https://reports.brow.si/client/app/index.html#/report/home?dateRange=#{URI::encode(date_range_obj.to_json)}"
|
37
|
-
sleep
|
38
|
+
sleep 30
|
38
39
|
end
|
39
40
|
|
40
41
|
def extract_data_from_report
|
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.1.
|
4
|
+
version: 0.1.42
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stayman Hou
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|