lazyad 0.0.41__py3-none-any.whl → 0.0.42__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 +7 -3
- {lazyad-0.0.41.dist-info → lazyad-0.0.42.dist-info}/METADATA +1 -1
- {lazyad-0.0.41.dist-info → lazyad-0.0.42.dist-info}/RECORD +5 -5
- {lazyad-0.0.41.dist-info → lazyad-0.0.42.dist-info}/WHEEL +0 -0
- {lazyad-0.0.41.dist-info → lazyad-0.0.42.dist-info}/top_level.txt +0 -0
lazyad/crawlers/mintegral.py
CHANGED
|
@@ -24,6 +24,7 @@ default_headers = {
|
|
|
24
24
|
"TE": "trailers",
|
|
25
25
|
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0"
|
|
26
26
|
}
|
|
27
|
+
default_timeout = 60
|
|
27
28
|
|
|
28
29
|
|
|
29
30
|
def auth(
|
|
@@ -134,7 +135,8 @@ def performance(
|
|
|
134
135
|
metrics: list = None,
|
|
135
136
|
sort: str = None,
|
|
136
137
|
order: str = "DESC",
|
|
137
|
-
adv_campaign_id: int = None
|
|
138
|
+
adv_campaign_id: int = None,
|
|
139
|
+
timeout: int = default_timeout
|
|
138
140
|
):
|
|
139
141
|
"""
|
|
140
142
|
获取广告单元列表
|
|
@@ -215,12 +217,14 @@ def performance(
|
|
|
215
217
|
method="GET",
|
|
216
218
|
params=params,
|
|
217
219
|
url=f"{scheme}://{host}{filename_total}",
|
|
218
|
-
headers=headers
|
|
220
|
+
headers=headers,
|
|
221
|
+
timeout=timeout
|
|
219
222
|
)
|
|
220
223
|
else:
|
|
221
224
|
return lazyrequests.lazy_requests(
|
|
222
225
|
method="GET",
|
|
223
226
|
params=params,
|
|
224
227
|
url=f"{scheme}://{host}{filename}",
|
|
225
|
-
headers=headers
|
|
228
|
+
headers=headers,
|
|
229
|
+
timeout=timeout
|
|
226
230
|
)
|
|
@@ -1,12 +1,12 @@
|
|
|
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=GI22Eu85V76B7j8Fn8QaqyViMbBmn9IQiIpPbVowQ5s,6864
|
|
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/qq.py,sha256=pru1p4LCjURD9N5ukx-OStYAmDCvrTW4VMB2N0-3i5Q,6904
|
|
9
|
-
lazyad-0.0.
|
|
10
|
-
lazyad-0.0.
|
|
11
|
-
lazyad-0.0.
|
|
12
|
-
lazyad-0.0.
|
|
9
|
+
lazyad-0.0.42.dist-info/METADATA,sha256=1adzHoU4rHkJ_qK4GyQCOC9N2yCMJCbZ8NFliBIufBQ,1884
|
|
10
|
+
lazyad-0.0.42.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
11
|
+
lazyad-0.0.42.dist-info/top_level.txt,sha256=RAPjtj4gZYpsKAM3fAQrWyyn84xjdRuaiUS76gx6eNs,7
|
|
12
|
+
lazyad-0.0.42.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|