lazyad 0.0.32__tar.gz → 0.0.33__tar.gz
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-0.0.32 → lazyad-0.0.33}/PKG-INFO +1 -1
- {lazyad-0.0.32 → lazyad-0.0.33}/lazyad/crawlers/chuangliang.py +10 -3
- {lazyad-0.0.32 → lazyad-0.0.33}/lazyad.egg-info/PKG-INFO +1 -1
- {lazyad-0.0.32 → lazyad-0.0.33}/setup.py +1 -1
- {lazyad-0.0.32 → lazyad-0.0.33}/README.md +0 -0
- {lazyad-0.0.32 → lazyad-0.0.33}/lazyad/__init__.py +0 -0
- {lazyad-0.0.32 → lazyad-0.0.33}/lazyad/crawlers/__init__.py +0 -0
- {lazyad-0.0.32 → lazyad-0.0.33}/lazyad/crawlers/oceanengine.py +0 -0
- {lazyad-0.0.32 → lazyad-0.0.33}/lazyad/crawlers/qq.py +0 -0
- {lazyad-0.0.32 → lazyad-0.0.33}/lazyad/open/__init__.py +0 -0
- {lazyad-0.0.32 → lazyad-0.0.33}/lazyad/open/qq.py +0 -0
- {lazyad-0.0.32 → lazyad-0.0.33}/lazyad.egg-info/SOURCES.txt +0 -0
- {lazyad-0.0.32 → lazyad-0.0.33}/lazyad.egg-info/dependency_links.txt +0 -0
- {lazyad-0.0.32 → lazyad-0.0.33}/lazyad.egg-info/requires.txt +0 -0
- {lazyad-0.0.32 → lazyad-0.0.33}/lazyad.egg-info/top_level.txt +0 -0
- {lazyad-0.0.32 → lazyad-0.0.33}/setup.cfg +0 -0
|
@@ -656,6 +656,7 @@ def update_budget_batch(
|
|
|
656
656
|
cookie: str,
|
|
657
657
|
media_type: str,
|
|
658
658
|
media_account_id: str = None,
|
|
659
|
+
media_account_ids: list = None,
|
|
659
660
|
daily_budget: str = None
|
|
660
661
|
):
|
|
661
662
|
"""
|
|
@@ -666,13 +667,19 @@ def update_budget_batch(
|
|
|
666
667
|
if media_type == "gdt":
|
|
667
668
|
# 目前只有旧版可以改,新版的无法改
|
|
668
669
|
url = "https://cli2.mobgi.com/Gdt/MainList/updateBudgetBatch"
|
|
669
|
-
|
|
670
|
-
|
|
670
|
+
if media_account_id:
|
|
671
|
+
inner_data = [
|
|
671
672
|
{
|
|
672
673
|
"media_account_id": media_account_id,
|
|
673
674
|
"daily_budget": daily_budget
|
|
674
675
|
}
|
|
675
|
-
]
|
|
676
|
+
]
|
|
677
|
+
elif media_account_ids:
|
|
678
|
+
inner_data = list(map(lambda x: {"media_account_id": x, "daily_budget": daily_budget}, media_account_ids))
|
|
679
|
+
else:
|
|
680
|
+
return
|
|
681
|
+
data = {
|
|
682
|
+
"data": inner_data,
|
|
676
683
|
"time": "now"
|
|
677
684
|
}
|
|
678
685
|
else:
|
|
@@ -13,7 +13,7 @@ with open("README.md", "r", encoding='utf-8') as fh:
|
|
|
13
13
|
|
|
14
14
|
setuptools.setup(
|
|
15
15
|
name="lazyad",
|
|
16
|
-
version="0.0.
|
|
16
|
+
version="0.0.33",
|
|
17
17
|
description="基于Python的懒人包-适用于广告投放模块",
|
|
18
18
|
long_description=long_description,
|
|
19
19
|
long_description_content_type="text/markdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|