adops_report_scrapper 0.1.66 → 0.1.67
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/adtechus_client.rb +12 -3
- 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: 7125ce707e546106037a9d1aa48886c7890a47f4
|
4
|
+
data.tar.gz: f5e68fd5f368ad5a4ed79dd0085553ad1adc383f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04b65bc91288708a4834ee83c36bd49d1f2d587180e413b16d020849a1e019da3c35043a563632dfe32b5cf94fba25000bf39f4fba62a420d79885a3845bec97
|
7
|
+
data.tar.gz: b9557ae9913eac36a13825b015aa77bbd6e226eefb23c9906c040c4e32dad8a76af4aa08f1025c06d526714d4d0ef5dcdb7d9d501e2b211aaed94741728a02f1
|
data/CHANGELOG
CHANGED
@@ -6,9 +6,17 @@ class AdopsReportScrapper::AdtechusClient < AdopsReportScrapper::BaseClient
|
|
6
6
|
|
7
7
|
def login
|
8
8
|
@client.visit 'http://marketplace.adtechus.com'
|
9
|
-
@client.fill_in '
|
10
|
-
|
11
|
-
|
9
|
+
@client.fill_in 'Username', :with => @login
|
10
|
+
begin
|
11
|
+
@client.fill_in 'Password', :with => @secret
|
12
|
+
rescue Exception => e
|
13
|
+
puts 'You are selected in the Beta that sucks!!!'
|
14
|
+
@client.find_all(:button).first.click
|
15
|
+
sleep 10
|
16
|
+
@client.fill_in 'Password', :with => @secret
|
17
|
+
end
|
18
|
+
@client.find_all(:button).first.click
|
19
|
+
sleep 10
|
12
20
|
begin
|
13
21
|
@client.find :xpath, '//*[text()="REPORTING"]'
|
14
22
|
rescue Exception => e
|
@@ -21,6 +29,7 @@ class AdopsReportScrapper::AdtechusClient < AdopsReportScrapper::BaseClient
|
|
21
29
|
end
|
22
30
|
|
23
31
|
def request_report
|
32
|
+
byebug
|
24
33
|
@client.find(:xpath, '//*[text()="REPORTING"]').click
|
25
34
|
wait_for_loading
|
26
35
|
@client.visit(@client.find(:css, '#mainwindow')[:src])
|
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.67
|
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-03-
|
11
|
+
date: 2017-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|