adops_report_scrapper 0.2.48 → 0.2.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 77dcb0cc99bb8bb5bdf978fa8781d06b143bce84
4
- data.tar.gz: 0cc87ee18b3097b304ac5d304d1cf99e8f44b8a8
3
+ metadata.gz: 7b92b052395f7b0b3e1514195156f607ffc45e76
4
+ data.tar.gz: 6b57e79da369dc3e9afc7adf8f230defaec7aa33
5
5
  SHA512:
6
- metadata.gz: 39fb1dbbcd3ca87af5137a7009357cc171693bbff3e57db2e4f36ba20b65eec0050d799024ea442a0828b09b4e37805fb3c4c2fbb6f9768089a896deadedf14b
7
- data.tar.gz: e1db8a63a0643dc35f6400fa256b5694b54a1f54f5171a6a497ef9ae4740ec1839904e4fb66de613212d9b6fddbe78ba903d422e0c8014441e1dbdd1a69dd792
6
+ metadata.gz: fca64719b0d63f7bd408050cd679bd9c77d9f632a5e44b88c24e7e1d8ff7c0791402a8a1413301129940a35edd1e7c2de7ff7b5e2e6b692ad01817ecd88dca8c
7
+ data.tar.gz: bc05a85aeb352a1deb419779edfd25a245d4dcbe6d98fd7ef106960b618dea2e0fe629436965e1ea8b9113fe0d322c44c1d502b7330451742bae1cf09a4a9f57
data/CHANGELOG CHANGED
@@ -1,5 +1,8 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.2.49
4
+ fix for aol legacy report
5
+
3
6
  ## 0.2.45
4
7
  reimplement openx with their API
5
8
 
@@ -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
- 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
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
- 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
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://marketplace.adtechus.com/h2/reporting/showReport.do?action=showreportpage._._.#{report_id}"
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")
@@ -1,3 +1,3 @@
1
1
  module AdopsReportScrapper
2
- VERSION = "0.2.48"
2
+ VERSION = "0.2.49"
3
3
  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.48
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: 2017-12-06 00:00:00.000000000 Z
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.4.8
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