3,314
回編集
編集の要約なし |
細編集の要約なし |
||
173行目: | 173行目: | ||
import time | import time | ||
import datetime | import datetime | ||
import sys | |||
S = requests.Session() | S = requests.Session() | ||
250行目: | 251行目: | ||
} | } | ||
createLogs = getLogs(action="create/create",ns=0) | createLogs = getLogs(action="create/create", ns=0) | ||
createLogsLen = len(createLogs) | createLogsLen = len(createLogs) | ||
pageDataByUser = {"Yuito": [], "MediaWiki default": [], "キュアラプラプ": [], "せうゆ": [], | pageDataByUser = { | ||
"Yuito": [], "MediaWiki default": [], "キュアラプラプ": [], "せうゆ": [], | |||
"Mapilaplap": [], "芯": [], "Popbob": [], "Notorious": [], "しんたろう": [], "Long谷": [], | "Mapilaplap": [], "芯": [], "Popbob": [], "Notorious": [], "しんたろう": [], "Long谷": [], | ||
"神座麟": [], "ケツアゴコロロ": [], "ひしょう": [], "いせ": [], "デデ二オン": [], | "神座麟": [], "ケツアゴコロロ": [], "ひしょう": [], "いせ": [], "デデ二オン": [], | ||
330行目: | 332行目: | ||
} | } | ||
R = S.post(URL, data=PARAMS_1) | R = S.post(URL, data=PARAMS_1) | ||
DATA = R.json() | |||
if DATA["login"]["result"] == "Failed": | |||
choice = input("\rLogin faild. Still continue with your IP? [y/N]: ").lower() | |||
if choice in ["yes", "ye", "y"]: | |||
pass | |||
elif choice in ["no", "n"]: | |||
print("Processing has been aborted.") | |||
sys.exit() | |||
PARAMS_2 = { | PARAMS_2 = { | ||
343行目: | 353行目: | ||
"action": "edit", | "action": "edit", | ||
"title": "麻薬:データ", | "title": "麻薬:データ", | ||
"section": 1, | "section":1, | ||
"text": wText, | "text": wText, | ||
"summary": "利用者別バイト数データを更新", | "summary": "利用者別バイト数データを更新", |
回編集