adops_report_scrapper 0.2.23 → 0.2.24
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: fb9beb81dde043e82e3c034f4209bb2818645312
|
4
|
+
data.tar.gz: 53bd361517c5d4e0044cd0e32f6478d0ceb912db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f213278d000ef893acdc3da822897534a02087fac7991e08549228e4e7159ac61e46ae75f2286a220717c6e797781d0013599c75e9cdd789e81a4a7d280ace8a
|
7
|
+
data.tar.gz: a12820ed245f5cd5617dca72df8a4339d564d9c4d545bc74ed2549461afd7e702256f59a9345ce664f65338f572a6b25ef417a14e351b712607be70ab0cad109
|
@@ -41,11 +41,10 @@ class AdopsReportScrapper::PopadsbuyerClient < AdopsReportScrapper::BaseClient
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def scrap_hourly
|
44
|
-
|
45
|
-
end_date_str = @date.strftime('%Y-%m-%d')
|
44
|
+
date_str = @date.strftime('%Y-%m-%d')
|
46
45
|
time_zone_id = 'America%2FNew_York'
|
47
46
|
|
48
|
-
response = RestClient.post "https://www.popads.net/api/report_advertiser?key=#{@secret}&zone=#{time_zone_id}&start=#{
|
47
|
+
response = RestClient.post "https://www.popads.net/api/report_advertiser?key=#{@secret}&zone=#{time_zone_id}&start=#{date_str}%2000%3A00&end=#{date_str}%2023%3A59&groups=datetime%3Ahour", {}
|
49
48
|
|
50
49
|
data = JSON.parse response
|
51
50
|
data = data['rows']
|
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.24
|
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-06-
|
11
|
+
date: 2017-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|