lazyad 0.0.59__tar.gz → 0.0.60__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.59 → lazyad-0.0.60}/PKG-INFO +1 -1
- lazyad-0.0.60/lazyad/crawlers/wshoto.py +37 -0
- {lazyad-0.0.59 → lazyad-0.0.60}/lazyad.egg-info/PKG-INFO +1 -1
- {lazyad-0.0.59 → lazyad-0.0.60}/lazyad.egg-info/SOURCES.txt +1 -0
- {lazyad-0.0.59 → lazyad-0.0.60}/setup.py +1 -1
- {lazyad-0.0.59 → lazyad-0.0.60}/README.md +0 -0
- {lazyad-0.0.59 → lazyad-0.0.60}/lazyad/__init__.py +0 -0
- {lazyad-0.0.59 → lazyad-0.0.60}/lazyad/crawlers/__init__.py +0 -0
- {lazyad-0.0.59 → lazyad-0.0.60}/lazyad/crawlers/chuangliang.py +0 -0
- {lazyad-0.0.59 → lazyad-0.0.60}/lazyad/crawlers/mintegral.py +0 -0
- {lazyad-0.0.59 → lazyad-0.0.60}/lazyad/crawlers/oceanengine.py +0 -0
- {lazyad-0.0.59 → lazyad-0.0.60}/lazyad/crawlers/qq.py +0 -0
- {lazyad-0.0.59 → lazyad-0.0.60}/lazyad/open/__init__.py +0 -0
- {lazyad-0.0.59 → lazyad-0.0.60}/lazyad/open/kuaishou.py +0 -0
- {lazyad-0.0.59 → lazyad-0.0.60}/lazyad/open/mintegral.py +0 -0
- {lazyad-0.0.59 → lazyad-0.0.60}/lazyad/open/qq.py +0 -0
- {lazyad-0.0.59 → lazyad-0.0.60}/lazyad/open/unity.py +0 -0
- {lazyad-0.0.59 → lazyad-0.0.60}/lazyad.egg-info/dependency_links.txt +0 -0
- {lazyad-0.0.59 → lazyad-0.0.60}/lazyad.egg-info/requires.txt +0 -0
- {lazyad-0.0.59 → lazyad-0.0.60}/lazyad.egg-info/top_level.txt +0 -0
- {lazyad-0.0.59 → lazyad-0.0.60}/setup.cfg +0 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# 微盛,企业管家 https://platform.wshoto.com
|
|
2
|
+
from lazysdk import lazyrequests
|
|
3
|
+
import copy
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
default_headers = {
|
|
7
|
+
"Accept": "application/json, text/plain, */*",
|
|
8
|
+
"Accept-Encoding": "gzip, deflate, zstd",
|
|
9
|
+
"Accept-Language": "en-US,en;q=0.5",
|
|
10
|
+
"Cache-Control": "no-cache",
|
|
11
|
+
"Connection": "keep-alive",
|
|
12
|
+
"Host": "platform.wshoto.com",
|
|
13
|
+
"Origin": "https://platform.wshoto.com",
|
|
14
|
+
"Pragma": "no-cache",
|
|
15
|
+
"Referer": "https://platform.wshoto.com/index/dashboard",
|
|
16
|
+
"Sec-Fetch-Dest": "empty",
|
|
17
|
+
"Sec-Fetch-Mode": "cors",
|
|
18
|
+
"Sec-Fetch-Site": "same-origin",
|
|
19
|
+
"TE": "trailers",
|
|
20
|
+
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:139.0) Gecko/20100101 Firefox/139.0",
|
|
21
|
+
"x-admin-header": "1",
|
|
22
|
+
"x-clientType-header": "pc",
|
|
23
|
+
"x-header-host": "platform.wshoto.com",
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def dashboard(
|
|
28
|
+
authorization: str
|
|
29
|
+
):
|
|
30
|
+
url = "https://platform.wshoto.com/bff/index/private/pc/dashboard?saMode=SECRET"
|
|
31
|
+
headers = copy.deepcopy(default_headers)
|
|
32
|
+
headers["Authorization"] = authorization
|
|
33
|
+
return lazyrequests.lazy_requests(
|
|
34
|
+
method="POST",
|
|
35
|
+
url=url,
|
|
36
|
+
headers=headers
|
|
37
|
+
)
|
|
@@ -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.60",
|
|
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
|
|
File without changes
|