From 9dc27b0af52d8558a3eda13c5a71fca1f6bbe6c6 Mon Sep 17 00:00:00 2001 From: "mb@mb" Date: Mon, 8 Oct 2018 20:40:30 +0200 Subject: [PATCH] cleaning up the python file :) --- sandbox-score-revids.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sandbox-score-revids.py b/sandbox-score-revids.py index 3e723e3..6074929 100644 --- a/sandbox-score-revids.py +++ b/sandbox-score-revids.py @@ -1,19 +1,16 @@ #!/usr/bin/env python3 import os, time, json -import mwclient - from sys import stdin, stderr, stdout -import select from pprint import pprint import subprocess +import mwclient site = mwclient.Site('en.wikipedia.org') print(site) while True: - page = site.Pages['User:Trustinformationws/sandbox'] # print(page) @@ -21,7 +18,7 @@ while True: # model = 'draftquality' # model = 'damaging' - model = 'goodfaith' + # model = 'goodfaith' model = 'goodfaith draftquality' cmd = "echo '{\"rev_id\": "+str(revid)+"}' | ores score_revisions https://ores.wikimedia.org enwiki "+model