cleaning up the python file :)

This commit is contained in:
mb@mb 2018-10-08 20:40:30 +02:00
parent 44bc6941f6
commit 9dc27b0af5

View File

@ -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