lazyad 0.0.31__py3-none-any.whl → 0.0.32__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 +37 -0
- {lazyad-0.0.31.dist-info → lazyad-0.0.32.dist-info}/METADATA +1 -1
- {lazyad-0.0.31.dist-info → lazyad-0.0.32.dist-info}/RECORD +5 -5
- {lazyad-0.0.31.dist-info → lazyad-0.0.32.dist-info}/WHEEL +0 -0
- {lazyad-0.0.31.dist-info → lazyad-0.0.32.dist-info}/top_level.txt +0 -0
lazyad/crawlers/chuangliang.py
CHANGED
|
@@ -650,3 +650,40 @@ def get_account_report(
|
|
|
650
650
|
json=data,
|
|
651
651
|
headers=headers
|
|
652
652
|
)
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
def update_budget_batch(
|
|
656
|
+
cookie: str,
|
|
657
|
+
media_type: str,
|
|
658
|
+
media_account_id: str = None,
|
|
659
|
+
daily_budget: str = None
|
|
660
|
+
):
|
|
661
|
+
"""
|
|
662
|
+
修改账户日预算
|
|
663
|
+
:param cookie:
|
|
664
|
+
:return:
|
|
665
|
+
"""
|
|
666
|
+
if media_type == "gdt":
|
|
667
|
+
# 目前只有旧版可以改,新版的无法改
|
|
668
|
+
url = "https://cli2.mobgi.com/Gdt/MainList/updateBudgetBatch"
|
|
669
|
+
data = {
|
|
670
|
+
"data": [
|
|
671
|
+
{
|
|
672
|
+
"media_account_id": media_account_id,
|
|
673
|
+
"daily_budget": daily_budget
|
|
674
|
+
}
|
|
675
|
+
],
|
|
676
|
+
"time": "now"
|
|
677
|
+
}
|
|
678
|
+
else:
|
|
679
|
+
showlog.warning("未知媒体类型")
|
|
680
|
+
return
|
|
681
|
+
|
|
682
|
+
headers = copy.deepcopy(default_headers)
|
|
683
|
+
headers["Cookie"] = cookie
|
|
684
|
+
return lazyrequests.lazy_requests(
|
|
685
|
+
method="POST",
|
|
686
|
+
url=url,
|
|
687
|
+
json=data,
|
|
688
|
+
headers=headers
|
|
689
|
+
)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
lazyad/__init__.py,sha256=tnVTFEgdzgMWQI0mZqy3DAueMJjpypPb15DdxJ-9TiU,41
|
|
2
2
|
lazyad/crawlers/__init__.py,sha256=GK3GGpiUJbESc1uGTwSmEnsSUwYDNZfJCxeLYB4CpS4,68
|
|
3
|
-
lazyad/crawlers/chuangliang.py,sha256=
|
|
3
|
+
lazyad/crawlers/chuangliang.py,sha256=s_0agSrJIvrz4Eke1RolFrr-IRrBKiECdo5nCIBqY98,20428
|
|
4
4
|
lazyad/crawlers/oceanengine.py,sha256=kjBEpCb_h5OpodCTqzvXd5MBBwAuw3Oq5UKWoTCXrQM,4540
|
|
5
5
|
lazyad/crawlers/qq.py,sha256=mAVOP1TOGVD1juu77uKBauN7vLymukTJ1mJ8uyRh9a8,3230
|
|
6
6
|
lazyad/open/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
lazyad/open/qq.py,sha256=B6HWnBmtF3mbpwto1wqi7j-auK73Kzp8ESxeUpvLHRA,4391
|
|
8
|
-
lazyad-0.0.
|
|
9
|
-
lazyad-0.0.
|
|
10
|
-
lazyad-0.0.
|
|
11
|
-
lazyad-0.0.
|
|
8
|
+
lazyad-0.0.32.dist-info/METADATA,sha256=ObTWMEsae6RN8JBKkeB74h2j7jqYI6wzSxeGAOM3HBE,1695
|
|
9
|
+
lazyad-0.0.32.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
10
|
+
lazyad-0.0.32.dist-info/top_level.txt,sha256=RAPjtj4gZYpsKAM3fAQrWyyn84xjdRuaiUS76gx6eNs,7
|
|
11
|
+
lazyad-0.0.32.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|