lazyad 0.0.4__py3-none-any.whl → 0.0.5__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/__init__.py +2 -1
- lazyad/crawlers/chuangliang.py +54 -0
- {lazyad-0.0.4.dist-info → lazyad-0.0.5.dist-info}/METADATA +1 -1
- lazyad-0.0.5.dist-info/RECORD +9 -0
- lazyad-0.0.4.dist-info/RECORD +0 -8
- {lazyad-0.0.4.dist-info → lazyad-0.0.5.dist-info}/WHEEL +0 -0
- {lazyad-0.0.4.dist-info → lazyad-0.0.5.dist-info}/top_level.txt +0 -0
lazyad/crawlers/__init__.py
CHANGED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
from lazysdk import lazyrequests
|
|
2
|
+
import copy
|
|
3
|
+
|
|
4
|
+
default_headers = {
|
|
5
|
+
"Accept": "application/json, text/plain, */*",
|
|
6
|
+
"Accept-Encoding": "gzip, deflate",
|
|
7
|
+
"Accept-Language": "zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2",
|
|
8
|
+
"Connection": "keep-alive",
|
|
9
|
+
"Host": "cli2.mobgi.com",
|
|
10
|
+
"Origin": "https://cl.mobgi.com",
|
|
11
|
+
"Referer": "https://cl.mobgi.com/",
|
|
12
|
+
"Sec-Fetch-Dest": "empty",
|
|
13
|
+
"Sec-Fetch-Mode": "cors",
|
|
14
|
+
"Sec-Fetch-Site": "same-site",
|
|
15
|
+
"TE": "trailers",
|
|
16
|
+
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0",
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def get_media_account(
|
|
21
|
+
media_type: str,
|
|
22
|
+
cookie: str = None,
|
|
23
|
+
page: int = 1,
|
|
24
|
+
page_size: int = 20,
|
|
25
|
+
total_count: int = 0
|
|
26
|
+
):
|
|
27
|
+
"""
|
|
28
|
+
获取 推广-账户管理下的账户列表
|
|
29
|
+
:param media_type: 媒体类型
|
|
30
|
+
:param cookie:
|
|
31
|
+
:param page:
|
|
32
|
+
:param page_size:
|
|
33
|
+
:param total_count:
|
|
34
|
+
:return:
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
url = 'https://cli2.mobgi.com/Media/Account/getList'
|
|
38
|
+
data = {
|
|
39
|
+
"media_type": media_type,
|
|
40
|
+
"advertiser_type": "1",
|
|
41
|
+
"page": page,
|
|
42
|
+
"page_size": page_size,
|
|
43
|
+
"total_count": total_count
|
|
44
|
+
}
|
|
45
|
+
headers = copy.deepcopy(default_headers)
|
|
46
|
+
headers["Cookie"] = cookie
|
|
47
|
+
|
|
48
|
+
return lazyrequests.lazy_requests(
|
|
49
|
+
method='POST',
|
|
50
|
+
url=url,
|
|
51
|
+
json=data,
|
|
52
|
+
headers=headers,
|
|
53
|
+
return_json=True
|
|
54
|
+
)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
lazyad/__init__.py,sha256=ELZ9AH9-9Y32cf_jgHhvgEKGVOyKhRDCxHNLfiHB1sY,23
|
|
2
|
+
lazyad/crawlers/__init__.py,sha256=GK3GGpiUJbESc1uGTwSmEnsSUwYDNZfJCxeLYB4CpS4,68
|
|
3
|
+
lazyad/crawlers/chuangliang.py,sha256=mVlfN5fipQdRc6STuC0B68ntGCU23I1PF2sD5q2jncg,1482
|
|
4
|
+
lazyad/crawlers/oceanengine.py,sha256=kjBEpCb_h5OpodCTqzvXd5MBBwAuw3Oq5UKWoTCXrQM,4540
|
|
5
|
+
lazyad/crawlers/qq.py,sha256=JLMqiHSVyLb123Ietr9LHyEa7pgIHL3PsGZPwAY0zy0,2860
|
|
6
|
+
lazyad-0.0.5.dist-info/METADATA,sha256=Z-kOeXVYAmOrno9I1YxMS5QXLk7y6XREOzDsT5O3NlE,1694
|
|
7
|
+
lazyad-0.0.5.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
8
|
+
lazyad-0.0.5.dist-info/top_level.txt,sha256=RAPjtj4gZYpsKAM3fAQrWyyn84xjdRuaiUS76gx6eNs,7
|
|
9
|
+
lazyad-0.0.5.dist-info/RECORD,,
|
lazyad-0.0.4.dist-info/RECORD
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
lazyad/__init__.py,sha256=ELZ9AH9-9Y32cf_jgHhvgEKGVOyKhRDCxHNLfiHB1sY,23
|
|
2
|
-
lazyad/crawlers/__init__.py,sha256=XilNXaK4g85B9V4GZGoc02HUsTxjYgBIEUe7oSbxL24,42
|
|
3
|
-
lazyad/crawlers/oceanengine.py,sha256=kjBEpCb_h5OpodCTqzvXd5MBBwAuw3Oq5UKWoTCXrQM,4540
|
|
4
|
-
lazyad/crawlers/qq.py,sha256=JLMqiHSVyLb123Ietr9LHyEa7pgIHL3PsGZPwAY0zy0,2860
|
|
5
|
-
lazyad-0.0.4.dist-info/METADATA,sha256=tDt9KDhXp5Vpqlw7EKAU4crhLZdIpmkyHd7m4xqi4kM,1694
|
|
6
|
-
lazyad-0.0.4.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
7
|
-
lazyad-0.0.4.dist-info/top_level.txt,sha256=RAPjtj4gZYpsKAM3fAQrWyyn84xjdRuaiUS76gx6eNs,7
|
|
8
|
-
lazyad-0.0.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|