lazyad 0.0.54__py3-none-any.whl → 0.0.56__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/mintegral.py +14 -2
- lazyad/open/mintegral.py +5 -1
- {lazyad-0.0.54.dist-info → lazyad-0.0.56.dist-info}/METADATA +1 -1
- {lazyad-0.0.54.dist-info → lazyad-0.0.56.dist-info}/RECORD +6 -6
- {lazyad-0.0.54.dist-info → lazyad-0.0.56.dist-info}/WHEEL +0 -0
- {lazyad-0.0.54.dist-info → lazyad-0.0.56.dist-info}/top_level.txt +0 -0
lazyad/crawlers/mintegral.py
CHANGED
|
@@ -49,7 +49,8 @@ def auth(
|
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
def options(
|
|
52
|
-
cookie: str
|
|
52
|
+
cookie: str,
|
|
53
|
+
query: list = None
|
|
53
54
|
):
|
|
54
55
|
"""
|
|
55
56
|
获取系统的基本选项
|
|
@@ -68,8 +69,19 @@ def options(
|
|
|
68
69
|
scheme = "https"
|
|
69
70
|
host = "ss-api.mintegral.com"
|
|
70
71
|
filename = "/api/v1/options/_batch"
|
|
72
|
+
if not query:
|
|
73
|
+
query = [
|
|
74
|
+
"offer",
|
|
75
|
+
"campaign",
|
|
76
|
+
"offer-status",
|
|
77
|
+
"billing-type",
|
|
78
|
+
"country",
|
|
79
|
+
"timezone",
|
|
80
|
+
"country-region-city",
|
|
81
|
+
"bid-type"
|
|
82
|
+
]
|
|
71
83
|
params = {
|
|
72
|
-
"query": "
|
|
84
|
+
"query": ",".join(query)
|
|
73
85
|
}
|
|
74
86
|
url = f"{scheme}://{host}{filename}"
|
|
75
87
|
headers = copy.deepcopy(default_headers)
|
lazyad/open/mintegral.py
CHANGED
|
@@ -245,7 +245,8 @@ def get_offer(
|
|
|
245
245
|
limit: int = 10,
|
|
246
246
|
campaign_id: str = None,
|
|
247
247
|
offer_id: str = None,
|
|
248
|
-
package_name: str = None
|
|
248
|
+
package_name: str = None,
|
|
249
|
+
ext_fields: list = None
|
|
249
250
|
):
|
|
250
251
|
"""
|
|
251
252
|
获取广告单元列表
|
|
@@ -257,6 +258,7 @@ def get_offer(
|
|
|
257
258
|
:param campaign_id: 广告 ID,多个用,隔开
|
|
258
259
|
:param offer_id: 广告单元 ID,多个用,隔开
|
|
259
260
|
:param package_name: 包名,支持模糊查询
|
|
261
|
+
:param ext_fields: 扩展查询,target_app:该字段用于屏蔽或者定向具体的应用
|
|
260
262
|
:return:
|
|
261
263
|
"""
|
|
262
264
|
url = "https://ss-api.mintegral.com/api/open/v1/offers"
|
|
@@ -274,6 +276,8 @@ def get_offer(
|
|
|
274
276
|
params["offer_id"] = offer_id
|
|
275
277
|
if package_name:
|
|
276
278
|
params["package_name"] = package_name
|
|
279
|
+
if ext_fields:
|
|
280
|
+
params["ext_fields"] = ",".join(ext_fields)
|
|
277
281
|
|
|
278
282
|
return lazyrequests.lazy_requests(
|
|
279
283
|
method="GET",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
lazyad/__init__.py,sha256=tnVTFEgdzgMWQI0mZqy3DAueMJjpypPb15DdxJ-9TiU,41
|
|
2
2
|
lazyad/crawlers/__init__.py,sha256=GK3GGpiUJbESc1uGTwSmEnsSUwYDNZfJCxeLYB4CpS4,68
|
|
3
3
|
lazyad/crawlers/chuangliang.py,sha256=nU57GkUGAXcu8TquqB9hg8Ysvl5E3ZlGX6pedj_nIwo,24830
|
|
4
|
-
lazyad/crawlers/mintegral.py,sha256=
|
|
4
|
+
lazyad/crawlers/mintegral.py,sha256=awhS2yb48nh5f_yENyUy_vsleuMivrBsYbqrM7eS2jM,9622
|
|
5
5
|
lazyad/crawlers/oceanengine.py,sha256=kjBEpCb_h5OpodCTqzvXd5MBBwAuw3Oq5UKWoTCXrQM,4540
|
|
6
6
|
lazyad/crawlers/qq.py,sha256=X_VjdgzAcDfckEAHrvdqBLtnmAuCBHPJVWu2H-IHZBA,5649
|
|
7
7
|
lazyad/open/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
8
|
lazyad/open/kuaishou.py,sha256=B4wz3XW1hLQy7XR_nDQwrMUrYnm9Djec7OXKXRdiYXc,635
|
|
9
|
-
lazyad/open/mintegral.py,sha256=
|
|
9
|
+
lazyad/open/mintegral.py,sha256=BXCaCfnz2iUsR-RtDSA8I27KSK8r4v3xkZfllD9q_vY,12788
|
|
10
10
|
lazyad/open/qq.py,sha256=pru1p4LCjURD9N5ukx-OStYAmDCvrTW4VMB2N0-3i5Q,6904
|
|
11
11
|
lazyad/open/unity.py,sha256=A0tEN5k40xq0v1cRnTLwRN5N7CBIe2oAyMRH1uxDAEw,8493
|
|
12
|
-
lazyad-0.0.
|
|
13
|
-
lazyad-0.0.
|
|
14
|
-
lazyad-0.0.
|
|
15
|
-
lazyad-0.0.
|
|
12
|
+
lazyad-0.0.56.dist-info/METADATA,sha256=fOtgXvCEZT7MuHTO-KNw08qbOIFwtf0ITtjtzsEAPRs,1918
|
|
13
|
+
lazyad-0.0.56.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
14
|
+
lazyad-0.0.56.dist-info/top_level.txt,sha256=RAPjtj4gZYpsKAM3fAQrWyyn84xjdRuaiUS76gx6eNs,7
|
|
15
|
+
lazyad-0.0.56.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|