Open annathecrow opened 6 years ago
I tried running the media stats API on GAE, and unfortunately the full call (/stats/media) takes so long it times out.
I think that for this to work, the media category pages will need to be cached. That means that it depends on #28
@destinationtoast, this is the API endpoint for the top X fandoms per media category from your script. Would you be able to test it locally before I push it to GAE?
The endpoint is
/stats/media
. It takes the number of fandoms per m.c. as a required parameter, and the option to use/ignore umbrella fandoms as an optional param. I added a new option to fetch only specific media categories (i.e. just "Movies" and "TV Shows").I modified the output somewhat - I realized that during the parsing we're going over some interesting numbers, so we might as well return those too.
Example API output.