lazyad 0.0.58__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lazyad
3
- Version: 0.0.58
3
+ Version: 0.0.60
4
4
  Summary: 基于Python的懒人包-适用于广告投放模块
5
5
  Home-page: https://gitee.com/ZeroSeeker/lazyad
6
6
  Author: ZeroSeeker
@@ -19,6 +19,7 @@ default_headers = {
19
19
  "TE": "trailers",
20
20
  "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0",
21
21
  }
22
+ default_host = "cli2.mobgi.com"
22
23
 
23
24
 
24
25
  def get_media_account(
@@ -840,7 +841,7 @@ def get_project_report(
840
841
  def get_material_detail(
841
842
  cookie: str,
842
843
  material_id: str,
843
- host: str = None
844
+ host: str = default_host
844
845
  ):
845
846
  """
846
847
  获取素材详情
@@ -870,7 +871,7 @@ def deactivate_material(
870
871
  is_deactivate: int,
871
872
  material_id: str = None,
872
873
  material_ids: list = None,
873
- host: str = None
874
+ host: str = default_host
874
875
  ):
875
876
  """
876
877
  启用/禁用素材
@@ -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
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lazyad
3
- Version: 0.0.58
3
+ Version: 0.0.60
4
4
  Summary: 基于Python的懒人包-适用于广告投放模块
5
5
  Home-page: https://gitee.com/ZeroSeeker/lazyad
6
6
  Author: ZeroSeeker
@@ -11,6 +11,7 @@ lazyad/crawlers/chuangliang.py
11
11
  lazyad/crawlers/mintegral.py
12
12
  lazyad/crawlers/oceanengine.py
13
13
  lazyad/crawlers/qq.py
14
+ lazyad/crawlers/wshoto.py
14
15
  lazyad/open/__init__.py
15
16
  lazyad/open/kuaishou.py
16
17
  lazyad/open/mintegral.py
@@ -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.58",
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