lazyad 0.0.62__py3-none-any.whl → 0.0.64__py3-none-any.whl
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.
Potentially problematic release.
This version of lazyad might be problematic. Click here for more details.
- lazyad/crawlers/chuangliang.py +13 -7
- lazyad/crawlers/mintegral.py +1 -1
- {lazyad-0.0.62.dist-info → lazyad-0.0.64.dist-info}/METADATA +1 -1
- {lazyad-0.0.62.dist-info → lazyad-0.0.64.dist-info}/RECORD +6 -6
- {lazyad-0.0.62.dist-info → lazyad-0.0.64.dist-info}/WHEEL +0 -0
- {lazyad-0.0.62.dist-info → lazyad-0.0.64.dist-info}/top_level.txt +0 -0
lazyad/crawlers/chuangliang.py
CHANGED
|
@@ -20,6 +20,7 @@ default_headers = {
|
|
|
20
20
|
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0",
|
|
21
21
|
}
|
|
22
22
|
default_host = "cli2.mobgi.com"
|
|
23
|
+
hosts = ["cli1.mobgi.com", "cli2.mobgi.com"]
|
|
23
24
|
|
|
24
25
|
|
|
25
26
|
def get_media_account(
|
|
@@ -446,7 +447,8 @@ def get_material_report(
|
|
|
446
447
|
data_type: str = "list",
|
|
447
448
|
sort_direction: str = "desc",
|
|
448
449
|
conditions: dict = None,
|
|
449
|
-
relate_dims: list = None
|
|
450
|
+
relate_dims: list = None,
|
|
451
|
+
host: str = "cli2.mobgi.com",
|
|
450
452
|
):
|
|
451
453
|
"""
|
|
452
454
|
报表-素材报表
|
|
@@ -455,22 +457,26 @@ def get_material_report(
|
|
|
455
457
|
:param end_date:
|
|
456
458
|
:param page:
|
|
457
459
|
:param page_size:
|
|
458
|
-
:param media_type:媒体:gdt_new|广点通(新指标体系),toutiao_upgrade|今日头条2.0
|
|
459
|
-
:param data_dim:
|
|
460
|
+
:param media_type:媒体:gdt_new|广点通(新指标体系),toutiao_upgrade|今日头条2.0/巨量广告,aggregate|不限,baidu:百度信息流
|
|
461
|
+
:param data_dim: 数据维度:素材
|
|
460
462
|
:param data_type:
|
|
461
|
-
:param sort_direction:
|
|
462
|
-
:param sort_field:
|
|
463
|
+
:param sort_direction: 排序
|
|
464
|
+
:param sort_field: 排序字段,stat_cost:消耗
|
|
463
465
|
:param time_dim: 时间维度的数据汇总方式,days:分日,sum:汇总
|
|
464
466
|
:param conditions:
|
|
465
467
|
:param kpis:
|
|
466
|
-
:param relate_dims
|
|
468
|
+
:param relate_dims:关联维度,
|
|
469
|
+
material_create_time:上传时间 --> material_create_time
|
|
470
|
+
owner_user_id:优化师 --> user_name
|
|
471
|
+
creative_user_id:创意人 --> creative_user
|
|
472
|
+
:param host:
|
|
467
473
|
:return:
|
|
468
474
|
"""
|
|
469
475
|
if not start_date:
|
|
470
476
|
start_date = lazytime.get_date_string(days=0)
|
|
471
477
|
if not end_date:
|
|
472
478
|
end_date = lazytime.get_date_string(days=0)
|
|
473
|
-
url = "https://
|
|
479
|
+
url = f"https://{host}/ReportV23/MaterialReport/getReport"
|
|
474
480
|
data = {
|
|
475
481
|
"time_dim": time_dim,
|
|
476
482
|
"media_type": media_type,
|
lazyad/crawlers/mintegral.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
lazyad/__init__.py,sha256=tnVTFEgdzgMWQI0mZqy3DAueMJjpypPb15DdxJ-9TiU,41
|
|
2
2
|
lazyad/crawlers/__init__.py,sha256=GK3GGpiUJbESc1uGTwSmEnsSUwYDNZfJCxeLYB4CpS4,68
|
|
3
|
-
lazyad/crawlers/chuangliang.py,sha256=
|
|
4
|
-
lazyad/crawlers/mintegral.py,sha256=
|
|
3
|
+
lazyad/crawlers/chuangliang.py,sha256=JxJqHPX10OZwGSHK2g9sSV6YpzZTGg0s4TrFemL6Iyk,26143
|
|
4
|
+
lazyad/crawlers/mintegral.py,sha256=FNd9CAZd0x_jZdrSKunODYGJJb6EJofmq0kQzSDu2Yg,11154
|
|
5
5
|
lazyad/crawlers/oceanengine.py,sha256=kjBEpCb_h5OpodCTqzvXd5MBBwAuw3Oq5UKWoTCXrQM,4540
|
|
6
6
|
lazyad/crawlers/qq.py,sha256=X_VjdgzAcDfckEAHrvdqBLtnmAuCBHPJVWu2H-IHZBA,5649
|
|
7
7
|
lazyad/crawlers/wshoto.py,sha256=3xckDjK-BpEGPMLHUBgQ8OWuUq77EBL9f7d4j0jwuAY,1224
|
|
@@ -10,7 +10,7 @@ lazyad/open/kuaishou.py,sha256=B4wz3XW1hLQy7XR_nDQwrMUrYnm9Djec7OXKXRdiYXc,635
|
|
|
10
10
|
lazyad/open/mintegral.py,sha256=BXCaCfnz2iUsR-RtDSA8I27KSK8r4v3xkZfllD9q_vY,12788
|
|
11
11
|
lazyad/open/qq.py,sha256=pru1p4LCjURD9N5ukx-OStYAmDCvrTW4VMB2N0-3i5Q,6904
|
|
12
12
|
lazyad/open/unity.py,sha256=A0tEN5k40xq0v1cRnTLwRN5N7CBIe2oAyMRH1uxDAEw,8493
|
|
13
|
-
lazyad-0.0.
|
|
14
|
-
lazyad-0.0.
|
|
15
|
-
lazyad-0.0.
|
|
16
|
-
lazyad-0.0.
|
|
13
|
+
lazyad-0.0.64.dist-info/METADATA,sha256=VuZ-OAfJZ8gQmrTvgRz20DOheNLWpo4rVeWTj57SlIc,1916
|
|
14
|
+
lazyad-0.0.64.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
|
15
|
+
lazyad-0.0.64.dist-info/top_level.txt,sha256=RAPjtj4gZYpsKAM3fAQrWyyn84xjdRuaiUS76gx6eNs,7
|
|
16
|
+
lazyad-0.0.64.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|