import pywikibot

wikis = [('war', 'wikipedia'), ('hu', 'wikisource'),
         ('tum', 'wikipedia'), ('cy', 'wiktionary')]

total_blocks = 0
total_deletes = 0
total_hits = 0

for wiki in wikis:
    blocks = 0
    deletes = 0
    
    site = pywikibot.Site(wiki[0], wiki[1])
    list_blocks = site.logevents(logtype='block', user='Praxidicae',
                                 end='2019-08-10T00:00:00Z')
    list_deletes = site.logevents(logtype='delete', user='Praxidicae',
                                 end='2019-08-10T00:00:00Z')
    
    for entry in list_blocks:
        blocks += 1
        total_blocks +=1
    print(site.dbName(), blocks, 'blocks')
    
    for entry in list_deletes:
        deletes += 1
        total_deletes +=1
    print(site.dbName(), deletes, 'deletes')
    
print(total_blocks, 'blocks')
print(total_deletes, 'deletes')
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-20-cf3515119c38> in <module>
     19                                  end='2019-08-10T00:00:00Z')
     20     list_hits = site.logevents(logtype='abusefilter/hit',
---> 21                                  end='2019-08-10T00:00:00Z')
     22     for entry in list_blocks:
     23         blocks += 1

/srv/paws/pwb/pywikibot/tools/__init__.py in wrapper(*__args, **__kw)
   1736                              cls, depth)
   1737                     del __kw[old_arg]
-> 1738             return obj(*__args, **__kw)
   1739 
   1740         if not __debug__:

/srv/paws/pwb/pywikibot/site.py in logevents(self, logtype, user, page, namespace, start, end, reverse, tag, total)
   4654 
   4655         legen = self._generator(api.LogEntryListGenerator, type_arg=logtype,
-> 4656                                 total=total)
   4657         if logtype is not None:
   4658             legen.request['letype'] = logtype

/srv/paws/pwb/pywikibot/tools/__init__.py in wrapper(*__args, **__kw)
   1736                              cls, depth)
   1737                     del __kw[old_arg]
-> 1738             return obj(*__args, **__kw)
   1739 
   1740         if not __debug__:

/srv/paws/pwb/pywikibot/site.py in _generator(self, gen_class, type_arg, namespaces, total, **args)
   1943             req_args['g_content'] = args.pop('g_content')
   1944         if type_arg is not None:
-> 1945             gen = gen_class(type_arg, **req_args)
   1946         else:
   1947             gen = gen_class(**req_args)

/srv/paws/pwb/pywikibot/data/api.py in __init__(self, logtype, **kwargs)
   3063 
   3064         from pywikibot import logentries
-> 3065         self.entryFactory = logentries.LogEntryFactory(self.site, logtype)
   3066 
   3067     def result(self, pagedata):

/srv/paws/pwb/pywikibot/logentries.py in __init__(self, site, logtype)
    427             # Bind a Class object to self._creator:
    428             # When called, it will initialize a new object of that class
--> 429             logclass = self.get_valid_entry_class(logtype)
    430             self._creator = lambda data: logclass(data, self._site)
    431 

/srv/paws/pwb/pywikibot/logentries.py in get_valid_entry_class(self, logtype)
    457         """
    458         if logtype not in self._site.logtypes:
--> 459             raise KeyError('{} is not a valid logtype'.format(logtype))
    460         return LogEntryFactory.get_entry_class(logtype)
    461 

KeyError: 'abusefilter/hit is not a valid logtype'