Merge branch 'master' of https://git.vvvvvvaria.org/mb/trust-in-formation
This commit is contained in:
commit
a90aa9fa95
2
requirements.txt
Normal file
2
requirements.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
mwclient=0.9.1
|
||||||
|
pprint=0.1
|
@ -1,19 +1,16 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import os, time, json
|
import os, time, json
|
||||||
import mwclient
|
|
||||||
|
|
||||||
from sys import stdin, stderr, stdout
|
from sys import stdin, stderr, stdout
|
||||||
import select
|
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import mwclient
|
||||||
|
|
||||||
site = mwclient.Site('en.wikipedia.org')
|
site = mwclient.Site('en.wikipedia.org')
|
||||||
print(site)
|
print(site)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
|
||||||
|
|
||||||
page = site.Pages['User:Trustinformationws/sandbox']
|
page = site.Pages['User:Trustinformationws/sandbox']
|
||||||
# print(page)
|
# print(page)
|
||||||
|
|
||||||
@ -21,7 +18,7 @@ while True:
|
|||||||
|
|
||||||
# model = 'draftquality'
|
# model = 'draftquality'
|
||||||
# model = 'damaging'
|
# model = 'damaging'
|
||||||
model = 'goodfaith'
|
# model = 'goodfaith'
|
||||||
model = 'goodfaith draftquality'
|
model = 'goodfaith draftquality'
|
||||||
|
|
||||||
cmd = "echo '{\"rev_id\": "+str(revid)+"}' | ores score_revisions https://ores.wikimedia.org enwiki "+model
|
cmd = "echo '{\"rev_id\": "+str(revid)+"}' | ores score_revisions https://ores.wikimedia.org enwiki "+model
|
||||||
|
Loading…
Reference in New Issue
Block a user