adops_report_scrapper 0.1.28 → 0.1.29
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae43547932efdcbe02b3fd153a02816453999acb
|
4
|
+
data.tar.gz: fc4f1d79ff70f6af01b961df4d3ac1c5d4309cb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f2e5caecc5d2aa2fb7917fa8e1f8b34df0d703e3f573315973bdcd1e363f0e2571dca35341740de152dac74c8b74f58412910be5a2bf3b269499eff232cb4af
|
7
|
+
data.tar.gz: 33a2d356602ef0f4394e9189349f114ba2ef4599ebb267406cbd0d311fe669765a0a68786f0f7c78e9bfe38bbfba56307db1cf24c7a275fbda705a120c551a66
|
@@ -35,7 +35,7 @@ require 'adops_report_scrapper/revcontent_client'
|
|
35
35
|
require 'adops_report_scrapper/sonobi_client'
|
36
36
|
require 'adops_report_scrapper/springserve_client'
|
37
37
|
require 'adops_report_scrapper/tremor_client'
|
38
|
-
|
38
|
+
require 'adops_report_scrapper/triplelift_client'
|
39
39
|
require 'adops_report_scrapper/adtechus_client'
|
40
40
|
require 'adops_report_scrapper/zedo_client'
|
41
41
|
require 'adops_report_scrapper/adtomation_client'
|
@@ -23,7 +23,7 @@ class AdopsReportScrapper::AdtechusClient < AdopsReportScrapper::BaseClient
|
|
23
23
|
def request_report
|
24
24
|
@client.visit(@client.find(:css, '#mainwindow')[:src])
|
25
25
|
wait_for_loading
|
26
|
-
report_id = @client.find_all(:xpath, '//tr[./td/div/span[text()="Placement fill rate report"]]')[
|
26
|
+
report_id = @client.find_all(:xpath, '//tr[./td/div/span[text()="Placement fill rate report"]]')[-1][:id]
|
27
27
|
report_id = report_id.tr 'row_', ''
|
28
28
|
@client.visit "https://marketplace.adtechus.com/h2/reporting/showReport.do?action=showreportpage._._.#{report_id}"
|
29
29
|
@client.within_frame @client.find(:css, '#reportwindow') do
|
@@ -20,6 +20,12 @@ class AdopsReportScrapper::TripleliftClient < AdopsReportScrapper::BaseClient
|
|
20
20
|
@date_str = @date.strftime('%B %d, %Y')
|
21
21
|
@client.find(:xpath, '//*[text()="Reporting"]').click
|
22
22
|
wait_for_spin
|
23
|
+
# byebug
|
24
|
+
# @client.find(:xpath, '//button[contains(text(),"Last 7 days")]').click
|
25
|
+
# @client.find(:xpath, '//a[contains(text(),"Yesterday")]').click
|
26
|
+
|
27
|
+
|
28
|
+
|
23
29
|
@client.find(:xpath, '//button[../../div[contains(text(),"Publisher")]]').click
|
24
30
|
@publishers = @client.find_all(:xpath, '//*[@ng-click="selectPublisher(pub)"]').to_a.map { |pub_elem| pub_elem.text(:all) }
|
25
31
|
sleep 2
|
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.29
|
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-10-
|
11
|
+
date: 2016-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|