diff --git a/newapi/client_wiki/pages/super_page.py b/newapi/client_wiki/pages/super_page.py index ef51d50..6ac8327 100644 --- a/newapi/client_wiki/pages/super_page.py +++ b/newapi/client_wiki/pages/super_page.py @@ -717,7 +717,7 @@ def save( # params['basetimestamp'] = self.revisions_data.timestamp - pop = self.login_bot.client_request_safe(params) + pop = self.login_bot.client_request_safe(params, method="post") if not pop: return False diff --git a/newapi/super/S_API/bot_api.py b/newapi/super/S_API/bot_api.py index c450703..5cb63be 100644 --- a/newapi/super/S_API/bot_api.py +++ b/newapi/super/S_API/bot_api.py @@ -56,7 +56,7 @@ def Find_pages_exists_or_not(self, liste, get_redirect=False, noprint=False): # --- # if get_redirect: params["redirects"] = 1 # --- - json1 = self.login_bot.client_request_safe(params) + json1 = self.login_bot.client_request_safe(params, method="post") # --- if not json1: if not noprint: @@ -138,7 +138,7 @@ def Find_pages_exists_or_not_with_qids( if get_redirect: params["redirects"] = 1 # --- - json1 = self.login_bot.client_request_safe(params) + json1 = self.login_bot.client_request_safe(params, method="post") # --- if not json1: if not noprint: @@ -560,7 +560,7 @@ def Get_langlinks_for_list(self, titles, targtsitecode="", numbes=40): # --- # logger.debug(f'work for {len(group)} pages') # --- - json1 = self.login_bot.client_request_safe(params) + json1 = self.login_bot.client_request_safe(params, method="post") # --- if not json1: logger.info("bot_api. json1 is empty") @@ -608,7 +608,7 @@ def get_logs(self, title): "formatversion": 2, } # --- - data = self.login_bot.client_request_safe(params) + data = self.login_bot.client_request_safe(params, method="post") # --- if not data: return [] @@ -788,7 +788,7 @@ def Get_image_url(self, title): "formatversion": "2", } # --- - results = self.login_bot.client_request_safe(params) + results = self.login_bot.client_request_safe(params, method="post") # --- if not results: return "" @@ -820,7 +820,7 @@ def Get_imageinfo(self, title): "formatversion": "2", } # --- - results = self.login_bot.client_request_safe(params) + results = self.login_bot.client_request_safe(params, method="post") # --- if not results: return ""