4 from mw.api import Session
5 from mw.lib import persistence
7 session = Session("https://en.wikipedia.org/w/api.php")
9 rev, tokens_added, future_revs = persistence.api.score(session, 560561013,
12 words_re = re.compile("\w+", re.UNICODE)
15 for token in tokens_added:
16 if words_re.search(token.text):
17 print("'{0}' survived:".format(token.text))
18 for frev in token.revisions:
19 print("\t{revid} by {user}".format(**frev))