Hi,
I have this piece of code that counts edits:
<pre>
from pywikibot import Site, User
user = User(Site("en"), input('Enter user name: '))
counts = {}
for page, oldid, ts, comment in user.contributions(9999999999999):
page.namespace()
try:
counts[str(page.namespace())] += 0
except KeyError:
counts.update({str(page.namespace()): 0})
counts[str(page.namespace())] += 1
print('Totals:')
for key in counts:
a = key.replace(':', '')
if (a == ""):
a = 'Main'
print(a + ":", counts[key])
</pre>
My question is how to see the tags in edits. It seems that .contributions() does not return the tags.