lazyad 0.0.74__py3-none-any.whl → 0.0.75__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.

@@ -1297,3 +1297,72 @@ def Advertiser_getRealAdvertiserData(
1297
1297
  json=data,
1298
1298
  headers=headers
1299
1299
  )
1300
+
1301
+
1302
+ def Project_getList(
1303
+ cookie: str,
1304
+ sort_field: str,
1305
+ start_date: str = None,
1306
+ end_date: str = None,
1307
+ media_account_ids: list = None,
1308
+ conditions: str = None,
1309
+ data_type: str = "list",
1310
+ page: int = 1,
1311
+ page_size: int = 20,
1312
+ sort_direction: str = "desc",
1313
+ total_count: int = None,
1314
+ total_page: int = None,
1315
+
1316
+ scheme: str = "https",
1317
+ host: str = default_host,
1318
+ filename: str = "/Toutiao/Project/getList"
1319
+ ):
1320
+ """
1321
+ 推广-广告管理-项目
1322
+ :param cookie:
1323
+ :param start_date: 数据开始日期
1324
+ :param end_date: 数据结束日期
1325
+ :return:
1326
+ """
1327
+ url = f"{scheme}://{host}{filename}"
1328
+ if not start_date:
1329
+ start_date = lazytime.get_date_string(days=0)
1330
+ if not end_date:
1331
+ end_date = lazytime.get_date_string(days=0)
1332
+
1333
+ if not conditions and media_account_ids:
1334
+ conditions_list = list()
1335
+ for each_media_account_id in media_account_ids:
1336
+ conditions_list.append({"media_account_id": str(each_media_account_id)})
1337
+ conditions = json.dumps(conditions_list)
1338
+
1339
+ data = dict()
1340
+ if conditions:
1341
+ data["conditions"] = conditions
1342
+ if data_type:
1343
+ data["data_type"] = data_type
1344
+ if start_date:
1345
+ data["start_date"] = start_date
1346
+ if end_date:
1347
+ data["end_date"] = end_date
1348
+ if page:
1349
+ data["page"] = page
1350
+ if page_size:
1351
+ data["page_size"] = page_size
1352
+ if sort_direction:
1353
+ data["sort_direction"] = sort_direction
1354
+ if sort_field:
1355
+ data["sort_field"] = sort_field
1356
+ if total_count:
1357
+ data["total_count"] = total_count
1358
+ if total_page:
1359
+ data["total_page"] = total_page
1360
+
1361
+ headers = copy.deepcopy(default_headers)
1362
+ headers["Cookie"] = cookie
1363
+ return lazyrequests.lazy_requests(
1364
+ method="POST",
1365
+ url=url,
1366
+ json=data,
1367
+ headers=headers
1368
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lazyad
3
- Version: 0.0.74
3
+ Version: 0.0.75
4
4
  Summary: 基于Python的懒人包-适用于广告投放模块
5
5
  Home-page: https://gitee.com/ZeroSeeker/lazyad
6
6
  Author: ZeroSeeker
@@ -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=wDMe8OPJKMgSfkOu2rSWzreWLl3eusiFbq-oYCamUPo,37513
3
+ lazyad/crawlers/chuangliang.py,sha256=9yq4dU0lraedSelP_YU8B1DnUcTPUypt50OcA6sJmsw,39444
4
4
  lazyad/crawlers/mintegral.py,sha256=paibUE4R_sClQbGVVeRK9T5TzGqq6iDfWwDowWdipNk,15787
5
5
  lazyad/crawlers/oceanengine.py,sha256=kjBEpCb_h5OpodCTqzvXd5MBBwAuw3Oq5UKWoTCXrQM,4540
6
6
  lazyad/crawlers/qq.py,sha256=X_VjdgzAcDfckEAHrvdqBLtnmAuCBHPJVWu2H-IHZBA,5649
@@ -11,7 +11,7 @@ lazyad/open/kuaishou.py,sha256=B4wz3XW1hLQy7XR_nDQwrMUrYnm9Djec7OXKXRdiYXc,635
11
11
  lazyad/open/mintegral.py,sha256=BXCaCfnz2iUsR-RtDSA8I27KSK8r4v3xkZfllD9q_vY,12788
12
12
  lazyad/open/qq.py,sha256=pru1p4LCjURD9N5ukx-OStYAmDCvrTW4VMB2N0-3i5Q,6904
13
13
  lazyad/open/unity.py,sha256=A0tEN5k40xq0v1cRnTLwRN5N7CBIe2oAyMRH1uxDAEw,8493
14
- lazyad-0.0.74.dist-info/METADATA,sha256=rFSKNDB6drfswFPEuqqvDBM5B0feeoKgBF9e6EgQ1h0,1916
15
- lazyad-0.0.74.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
16
- lazyad-0.0.74.dist-info/top_level.txt,sha256=RAPjtj4gZYpsKAM3fAQrWyyn84xjdRuaiUS76gx6eNs,7
17
- lazyad-0.0.74.dist-info/RECORD,,
14
+ lazyad-0.0.75.dist-info/METADATA,sha256=yszJcUxSjXzkNaM2pfOYP5srktuRKnv8VjryngCSuRw,1916
15
+ lazyad-0.0.75.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
16
+ lazyad-0.0.75.dist-info/top_level.txt,sha256=RAPjtj4gZYpsKAM3fAQrWyyn84xjdRuaiUS76gx6eNs,7
17
+ lazyad-0.0.75.dist-info/RECORD,,