lazyad 0.0.57__py3-none-any.whl → 0.0.58__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/chuangliang.py +36 -1
- {lazyad-0.0.57.dist-info → lazyad-0.0.58.dist-info}/METADATA +1 -1
- {lazyad-0.0.57.dist-info → lazyad-0.0.58.dist-info}/RECORD +5 -5
- {lazyad-0.0.57.dist-info → lazyad-0.0.58.dist-info}/WHEEL +0 -0
- {lazyad-0.0.57.dist-info → lazyad-0.0.58.dist-info}/top_level.txt +0 -0
lazyad/crawlers/chuangliang.py
CHANGED
|
@@ -849,7 +849,7 @@ def get_material_detail(
|
|
|
849
849
|
:param host:
|
|
850
850
|
:return:
|
|
851
851
|
"""
|
|
852
|
-
url = "https://
|
|
852
|
+
url = f"https://{host}/Material/Manage/detail"
|
|
853
853
|
data = {
|
|
854
854
|
"material_id": material_id
|
|
855
855
|
}
|
|
@@ -863,3 +863,38 @@ def get_material_detail(
|
|
|
863
863
|
params=data,
|
|
864
864
|
headers=headers
|
|
865
865
|
)
|
|
866
|
+
|
|
867
|
+
|
|
868
|
+
def deactivate_material(
|
|
869
|
+
cookie: str,
|
|
870
|
+
is_deactivate: int,
|
|
871
|
+
material_id: str = None,
|
|
872
|
+
material_ids: list = None,
|
|
873
|
+
host: str = None
|
|
874
|
+
):
|
|
875
|
+
"""
|
|
876
|
+
启用/禁用素材
|
|
877
|
+
:param cookie:
|
|
878
|
+
:param is_deactivate: 0:启用,1:禁用
|
|
879
|
+
:param material_id: 素材ID
|
|
880
|
+
:param material_ids: [素材ID]
|
|
881
|
+
:param host:
|
|
882
|
+
:return:
|
|
883
|
+
"""
|
|
884
|
+
url = f"https://{host}/Material/Manage/deactivate"
|
|
885
|
+
if not material_ids:
|
|
886
|
+
material_ids = [material_id]
|
|
887
|
+
data = {
|
|
888
|
+
"material_ids": material_ids,
|
|
889
|
+
"is_deactivate": is_deactivate
|
|
890
|
+
}
|
|
891
|
+
headers = copy.deepcopy(default_headers)
|
|
892
|
+
headers["Cookie"] = cookie
|
|
893
|
+
if host:
|
|
894
|
+
headers["Host"] = host
|
|
895
|
+
return lazyrequests.lazy_requests(
|
|
896
|
+
method="POST",
|
|
897
|
+
url=url,
|
|
898
|
+
json=data,
|
|
899
|
+
headers=headers
|
|
900
|
+
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
lazyad/__init__.py,sha256=tnVTFEgdzgMWQI0mZqy3DAueMJjpypPb15DdxJ-9TiU,41
|
|
2
2
|
lazyad/crawlers/__init__.py,sha256=GK3GGpiUJbESc1uGTwSmEnsSUwYDNZfJCxeLYB4CpS4,68
|
|
3
|
-
lazyad/crawlers/chuangliang.py,sha256=
|
|
3
|
+
lazyad/crawlers/chuangliang.py,sha256=JwPREhLI8GWbNgfMjTImfOxnIuQ70vtN-KQJ3ZaBEzs,25746
|
|
4
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
|
|
@@ -9,7 +9,7 @@ lazyad/open/kuaishou.py,sha256=B4wz3XW1hLQy7XR_nDQwrMUrYnm9Djec7OXKXRdiYXc,635
|
|
|
9
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.58.dist-info/METADATA,sha256=dKjTGeLInuG5Vf2A-E98nqL1tmNreLdW1RVa-c3-6-M,1918
|
|
13
|
+
lazyad-0.0.58.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
14
|
+
lazyad-0.0.58.dist-info/top_level.txt,sha256=RAPjtj4gZYpsKAM3fAQrWyyn84xjdRuaiUS76gx6eNs,7
|
|
15
|
+
lazyad-0.0.58.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|