|
@@ -0,0 +1,37 @@
|
|
|
|
|
+from client.AIGCClient import AIGCClient
|
|
|
|
|
+
|
|
|
|
|
+aigc_client = AIGCClient(token="8bf14f27fc3a486788f3383452422d72", base_url="https://aigc-api.aiddit.com")
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+def _main():
|
|
|
|
|
+ crawler_plan_ids = [
|
|
|
|
|
+ "20260112220200878311844",
|
|
|
|
|
+ "20260112220402220841959",
|
|
|
|
|
+ "20260112220502939933244",
|
|
|
|
|
+ "20260112220531828165492",
|
|
|
|
|
+ "20260112220643629142255",
|
|
|
|
|
+ "20260112220821537298585",
|
|
|
|
|
+ "20260112220847790433437",
|
|
|
|
|
+ "20260113010110579630364",
|
|
|
|
|
+ "20260113010139069870987",
|
|
|
|
|
+ "20260113010249165202977",
|
|
|
|
|
+ "20260112220038987749267",
|
|
|
|
|
+ "20260112220333196236758",
|
|
|
|
|
+ "20260112220607572749425",
|
|
|
|
|
+ "20260112220715218387191",
|
|
|
|
|
+ "20260112220752706640482",
|
|
|
|
|
+ "20260113010023885861741",
|
|
|
|
|
+ "20260113010053572102316"
|
|
|
|
|
+ ]
|
|
|
|
|
+
|
|
|
|
|
+ for crawler_plan_id in crawler_plan_ids:
|
|
|
|
|
+ msg, crawler_plan_info = aigc_client.get_content_crawler_plan_by_id(crawler_plan_id)
|
|
|
|
|
+ update_data = crawler_plan_info["updateData"]
|
|
|
|
|
+ update_data['accountFilters'] = []
|
|
|
|
|
+ update_data['contentFilters'] = []
|
|
|
|
|
+ update_data['frequencyType'] = 2
|
|
|
|
|
+ print(aigc_client.crawler_plan_save(update_data))
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+if __name__ == '__main__':
|
|
|
|
|
+ _main()
|