lazyad 0.0.52__tar.gz → 0.0.53__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.52 → lazyad-0.0.53}/PKG-INFO +1 -1
- lazyad-0.0.53/lazyad/open/kuaishou.py +31 -0
- {lazyad-0.0.52 → lazyad-0.0.53}/lazyad.egg-info/PKG-INFO +1 -1
- {lazyad-0.0.52 → lazyad-0.0.53}/lazyad.egg-info/SOURCES.txt +1 -0
- {lazyad-0.0.52 → lazyad-0.0.53}/setup.py +1 -1
- {lazyad-0.0.52 → lazyad-0.0.53}/README.md +0 -0
- {lazyad-0.0.52 → lazyad-0.0.53}/lazyad/__init__.py +0 -0
- {lazyad-0.0.52 → lazyad-0.0.53}/lazyad/crawlers/__init__.py +0 -0
- {lazyad-0.0.52 → lazyad-0.0.53}/lazyad/crawlers/chuangliang.py +0 -0
- {lazyad-0.0.52 → lazyad-0.0.53}/lazyad/crawlers/mintegral.py +0 -0
- {lazyad-0.0.52 → lazyad-0.0.53}/lazyad/crawlers/oceanengine.py +0 -0
- {lazyad-0.0.52 → lazyad-0.0.53}/lazyad/crawlers/qq.py +0 -0
- {lazyad-0.0.52 → lazyad-0.0.53}/lazyad/open/__init__.py +0 -0
- {lazyad-0.0.52 → lazyad-0.0.53}/lazyad/open/mintegral.py +0 -0
- {lazyad-0.0.52 → lazyad-0.0.53}/lazyad/open/qq.py +0 -0
- {lazyad-0.0.52 → lazyad-0.0.53}/lazyad/open/unity.py +0 -0
- {lazyad-0.0.52 → lazyad-0.0.53}/lazyad.egg-info/dependency_links.txt +0 -0
- {lazyad-0.0.52 → lazyad-0.0.53}/lazyad.egg-info/requires.txt +0 -0
- {lazyad-0.0.52 → lazyad-0.0.53}/lazyad.egg-info/top_level.txt +0 -0
- {lazyad-0.0.52 → lazyad-0.0.53}/setup.cfg +0 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
from lazysdk import lazyrequests
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
def postback(
|
|
5
|
+
callback: str,
|
|
6
|
+
event_time: int,
|
|
7
|
+
event_type: int,
|
|
8
|
+
purchase_amount=None
|
|
9
|
+
):
|
|
10
|
+
"""
|
|
11
|
+
快手回传
|
|
12
|
+
:param callback:
|
|
13
|
+
:param event_time: 时间戳,单位秒
|
|
14
|
+
:param event_type:
|
|
15
|
+
:param purchase_amount:
|
|
16
|
+
:return:
|
|
17
|
+
"""
|
|
18
|
+
# result=1上报成功
|
|
19
|
+
params = {
|
|
20
|
+
"event_type": event_type,
|
|
21
|
+
"event_time": event_time,
|
|
22
|
+
}
|
|
23
|
+
if purchase_amount:
|
|
24
|
+
params["purchase_amount"] = purchase_amount
|
|
25
|
+
res = lazyrequests.lazy_requests(
|
|
26
|
+
method="GET",
|
|
27
|
+
url=callback,
|
|
28
|
+
params=params
|
|
29
|
+
)
|
|
30
|
+
return res
|
|
31
|
+
|
|
@@ -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.53",
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|