I want to count the number of answers for some specific users within a certain time range.I can't find the answers for those, though. The following script doesn't return anything:
from stackapi import StackAPI
from pprint import pprint
user_list = [12153576, 11148139]
SITE = StackAPI('stackoverflow')
answers = SITE.fetch('answers',fromdate=1591488000, todate=1591747200)
user_ids = SITE.fetch("users/{ids}", ids=user_list)
for user in user_ids['items']:
for ans in answers['items']:
if user['user_id'] == ans['owner']['user_id']:
pprint(ans['owner']['display_name'])
Answers do exist, however, for example: user 12153576's answer and user 11148139's answer.