adops_report_scrapper 0.2.48 → 0.2.49
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: 7b92b052395f7b0b3e1514195156f607ffc45e76
|
4
|
+
data.tar.gz: 6b57e79da369dc3e9afc7adf8f230defaec7aa33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fca64719b0d63f7bd408050cd679bd9c77d9f632a5e44b88c24e7e1d8ff7c0791402a8a1413301129940a35edd1e7c2de7ff7b5e2e6b692ad01817ecd88dca8c
|
7
|
+
data.tar.gz: bc05a85aeb352a1deb419779edfd25a245d4dcbe6d98fd7ef106960b618dea2e0fe629436965e1ea8b9113fe0d322c44c1d502b7330451742bae1cf09a4a9f57
|
data/CHANGELOG
CHANGED
@@ -7,14 +7,9 @@ class AdopsReportScrapper::AdaptvClient < AdopsReportScrapper::BaseClient
|
|
7
7
|
def login
|
8
8
|
@client.visit 'https://onevideo.aol.com/#/logon'
|
9
9
|
@client.fill_in 'Username', :with => @login
|
10
|
-
|
11
|
-
|
12
|
-
|
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
|
10
|
+
@client.find_all(:button).first.click
|
11
|
+
sleep 10
|
12
|
+
@client.fill_in 'Password', :with => @secret
|
18
13
|
@client.find_all(:button).first.click
|
19
14
|
sleep 10
|
20
15
|
begin
|
@@ -34,7 +29,7 @@ class AdopsReportScrapper::AdaptvClient < AdopsReportScrapper::BaseClient
|
|
34
29
|
@client.find(:xpath, '//*[text()="Close"]').click if @client.find_all(:xpath, '//*[text()="Close"]').count > 0
|
35
30
|
|
36
31
|
@client.find(:xpath, '//*[text()="Analytics"]').click
|
37
|
-
@client.find(:xpath, '//*[text()="Reports"]').click
|
32
|
+
@client.find(:xpath, '//*[text()="Reports (Legacy)"]').click
|
38
33
|
wait_for_spin
|
39
34
|
@client.find(:xpath, '//*[text()="New Report"]').click
|
40
35
|
wait_for_spin
|
@@ -7,14 +7,9 @@ class AdopsReportScrapper::AdtechusClient < AdopsReportScrapper::BaseClient
|
|
7
7
|
def login
|
8
8
|
@client.visit 'http://marketplace.adtechus.com'
|
9
9
|
@client.fill_in 'Username', :with => @login
|
10
|
-
|
11
|
-
|
12
|
-
|
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
|
10
|
+
@client.find_all(:button).first.click
|
11
|
+
sleep 10
|
12
|
+
@client.fill_in 'Password', :with => @secret
|
18
13
|
@client.find_all(:button).first.click
|
19
14
|
sleep 10
|
20
15
|
begin
|
@@ -35,7 +30,7 @@ class AdopsReportScrapper::AdtechusClient < AdopsReportScrapper::BaseClient
|
|
35
30
|
wait_for_loading
|
36
31
|
report_id = @client.find_all(:xpath, '//tr[./td/div/span[text()="Placement fill rate report"]]')[-1][:id]
|
37
32
|
report_id = report_id.tr 'row_', ''
|
38
|
-
@client.visit "https://
|
33
|
+
@client.visit "https://console.onedisplaymp.aol.com/h2/reporting/showReport.do?action=showreportpage._._.#{report_id}"
|
39
34
|
@client.within_frame @client.find(:css, '#reportwindow') do
|
40
35
|
@client.within_frame @client.find(:xpath, '//iframe[@name="uid_2"]') do
|
41
36
|
extract_data_from_report
|
@@ -29,7 +29,7 @@ class AdopsReportScrapper::OpenxClient < AdopsReportScrapper::BaseClient
|
|
29
29
|
def scrap
|
30
30
|
start_date_str = @date.strftime('%Y-%m-%d 00:00:00')
|
31
31
|
end_date_str = @date.strftime('%Y-%m-%d 23:59:59')
|
32
|
-
|
32
|
+
|
33
33
|
ox3 = OX3APIClient.new(@login, @secret, @site_url, @consumer_key, @consumer_secret, @realm)
|
34
34
|
|
35
35
|
response = ox3.get("/report/run?report=inv_rev&start_date=#{URI.escape(start_date_str)}&end_date=#{URI.escape(end_date_str)}&report_format=csv&do_break=AdUnit,Country&saleschannel=SALESCHANNEL.OPENXMARKET")
|
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.49
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stayman Hou
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -328,7 +328,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
328
328
|
version: '0'
|
329
329
|
requirements: []
|
330
330
|
rubyforge_project:
|
331
|
-
rubygems_version: 2.
|
331
|
+
rubygems_version: 2.6.11
|
332
332
|
signing_key:
|
333
333
|
specification_version: 4
|
334
334
|
summary: Adops Report Scrapper is a collection of web scrappers that can automatically
|