{"action":"opened","number":85,"pull_request":{"url":"https://api.github.com/repos/esgibter/fandomstats/pulls/85","id":186386831,"html_url":"https://github.com/esgibter/fandomstats/pull/85","diff_url":"https://github.com/esgibter/fandomstats/pull/85.diff","patch_url":"https://github.com/esgibter/fandomstats/pull/85.patch","issue_url":"https://api.github.com/repos/esgibter/fandomstats/issues/85","number":85,"state":"open","locked":false,"title":"Media stats","user":{"login":"annathecrow","id":4406275,"avatar_url":"https://avatars1.githubusercontent.com/u/4406275?v=4","gravatar_id":"","url":"https://api.github.com/users/annathecrow","html_url":"https://github.com/annathecrow","followers_url":"https://api.github.com/users/annathecrow/followers","following_url":"https://api.github.com/users/annathecrow/following{/other_user}","gists_url":"https://api.github.com/users/annathecrow/gists{/gist_id}","starred_url":"https://api.github.com/users/annathecrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annathecrow/subscriptions","organizations_url":"https://api.github.com/users/annathecrow/orgs","repos_url":"https://api.github.com/users/annathecrow/repos","events_url":"https://api.github.com/users/annathecrow/events{/privacy}","received_events_url":"https://api.github.com/users/annathecrow/received_events","type":"User","site_admin":false},"body":"@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?\r\n\r\nThe 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\").\r\n\r\nI 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. \r\n\r\n[Example API output.](https://gist.github.com/annathecrow/8916fee2715827c6f84ac65d83c908ad)\r\n","created_at":"2018-05-07T15:37:19Z","updated_at":"2018-05-07T15:37:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/esgibter/fandomstats/pulls/85/commits","review_comments_url":"https://api.github.com/repos/esgibter/fandomstats/pulls/85/comments","review_comment_url":"https://api.github.com/repos/esgibter/fandomstats/pulls/comments{/number}","comments_url":"https://api.github.com/repos/esgibter/fandomstats/issues/85/comments","statuses_url":"https://api.github.com/repos/esgibter/fandomstats/statuses/ae2084b20b6c87f515922e977ebc50d366eed7fb","head":{"label":"esgibter:media-stats","ref":"media-stats","sha":"ae2084b20b6c87f515922e977ebc50d366eed7fb","user":{"login":"esgibter","id":7269683,"avatar_url":"https://avatars3.githubusercontent.com/u/7269683?v=4","gravatar_id":"","url":"https://api.github.com/users/esgibter","html_url":"https://github.com/esgibter","followers_url":"https://api.github.com/users/esgibter/followers","following_url":"https://api.github.com/users/esgibter/following{/other_user}","gists_url":"https://api.github.com/users/esgibter/gists{/gist_id}","starred_url":"https://api.github.com/users/esgibter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esgibter/subscriptions","organizations_url":"https://api.github.com/users/esgibter/orgs","repos_url":"https://api.github.com/users/esgibter/repos","events_url":"https://api.github.com/users/esgibter/events{/privacy}","received_events_url":"https://api.github.com/users/esgibter/received_events","type":"User","site_admin":false},"repo":{"id":19231121,"name":"fandomstats","full_name":"esgibter/fandomstats","owner":{"login":"esgibter","id":7269683,"avatar_url":"https://avatars3.githubusercontent.com/u/7269683?v=4","gravatar_id":"","url":"https://api.github.com/users/esgibter","html_url":"https://github.com/esgibter","followers_url":"https://api.github.com/users/esgibter/followers","following_url":"https://api.github.com/users/esgibter/following{/other_user}","gists_url":"https://api.github.com/users/esgibter/gists{/gist_id}","starred_url":"https://api.github.com/users/esgibter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esgibter/subscriptions","organizations_url":"https://api.github.com/users/esgibter/orgs","repos_url":"https://api.github.com/users/esgibter/repos","events_url":"https://api.github.com/users/esgibter/events{/privacy}","received_events_url":"https://api.github.com/users/esgibter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/esgibter/fandomstats","description":"Fandom Statistics","fork":false,"url":"https://api.github.com/repos/esgibter/fandomstats","forks_url":"https://api.github.com/repos/esgibter/fandomstats/forks","keys_url":"https://api.github.com/repos/esgibter/fandomstats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/esgibter/fandomstats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/esgibter/fandomstats/teams","hooks_url":"https://api.github.com/repos/esgibter/fandomstats/hooks","issue_events_url":"https://api.github.com/repos/esgibter/fandomstats/issues/events{/number}","events_url":"https://api.github.com/repos/esgibter/fandomstats/events","assignees_url":"https://api.github.com/repos/esgibter/fandomstats/assignees{/user}","branches_url":"https://api.github.com/repos/esgibter/fandomstats/branches{/branch}","tags_url":"https://api.github.com/repos/esgibter/fandomstats/tags","blobs_url":"https://api.github.com/repos/esgibter/fandomstats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/esgibter/fandomstats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/esgibter/fandomstats/git/refs{/sha}","trees_url":"https://api.github.com/repos/esgibter/fandomstats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/esgibter/fandomstats/statuses/{sha}","languages_url":"https://api.github.com/repos/esgibter/fandomstats/languages","stargazers_url":"https://api.github.com/repos/esgibter/fandomstats/stargazers","contributors_url":"https://api.github.com/repos/esgibter/fandomstats/contributors","subscribers_url":"https://api.github.com/repos/esgibter/fandomstats/subscribers","subscription_url":"https://api.github.com/repos/esgibter/fandomstats/subscription","commits_url":"https://api.github.com/repos/esgibter/fandomstats/commits{/sha}","git_commits_url":"https://api.github.com/repos/esgibter/fandomstats/git/commits{/sha}","comments_url":"https://api.github.com/repos/esgibter/fandomstats/comments{/number}","issue_comment_url":"https://api.github.com/repos/esgibter/fandomstats/issues/comments{/number}","contents_url":"https://api.github.com/repos/esgibter/fandomstats/contents/{+path}","compare_url":"https://api.github.com/repos/esgibter/fandomstats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/esgibter/fandomstats/merges","archive_url":"https://api.github.com/repos/esgibter/fandomstats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/esgibter/fandomstats/downloads","issues_url":"https://api.github.com/repos/esgibter/fandomstats/issues{/number}","pulls_url":"https://api.github.com/repos/esgibter/fandomstats/pulls{/number}","milestones_url":"https://api.github.com/repos/esgibter/fandomstats/milestones{/number}","notifications_url":"https://api.github.com/repos/esgibter/fandomstats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/esgibter/fandomstats/labels{/name}","releases_url":"https://api.github.com/repos/esgibter/fandomstats/releases{/id}","deployments_url":"https://api.github.com/repos/esgibter/fandomstats/deployments","created_at":"2014-04-28T07:57:34Z","updated_at":"2018-04-12T21:09:51Z","pushed_at":"2018-05-07T15:21:10Z","git_url":"git://github.com/esgibter/fandomstats.git","ssh_url":"git@github.com:esgibter/fandomstats.git","clone_url":"https://github.com/esgibter/fandomstats.git","svn_url":"https://github.com/esgibter/fandomstats","homepage":"","size":1645,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":15,"license":null,"forks":0,"open_issues":15,"watchers":3,"default_branch":"master"}},"base":{"label":"esgibter:master","ref":"master","sha":"27e6a414a718f5992bd698650dfc12b061b96d4a","user":{"login":"esgibter","id":7269683,"avatar_url":"https://avatars3.githubusercontent.com/u/7269683?v=4","gravatar_id":"","url":"https://api.github.com/users/esgibter","html_url":"https://github.com/esgibter","followers_url":"https://api.github.com/users/esgibter/followers","following_url":"https://api.github.com/users/esgibter/following{/other_user}","gists_url":"https://api.github.com/users/esgibter/gists{/gist_id}","starred_url":"https://api.github.com/users/esgibter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esgibter/subscriptions","organizations_url":"https://api.github.com/users/esgibter/orgs","repos_url":"https://api.github.com/users/esgibter/repos","events_url":"https://api.github.com/users/esgibter/events{/privacy}","received_events_url":"https://api.github.com/users/esgibter/received_events","type":"User","site_admin":false},"repo":{"id":19231121,"name":"fandomstats","full_name":"esgibter/fandomstats","owner":{"login":"esgibter","id":7269683,"avatar_url":"https://avatars3.githubusercontent.com/u/7269683?v=4","gravatar_id":"","url":"https://api.github.com/users/esgibter","html_url":"https://github.com/esgibter","followers_url":"https://api.github.com/users/esgibter/followers","following_url":"https://api.github.com/users/esgibter/following{/other_user}","gists_url":"https://api.github.com/users/esgibter/gists{/gist_id}","starred_url":"https://api.github.com/users/esgibter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esgibter/subscriptions","organizations_url":"https://api.github.com/users/esgibter/orgs","repos_url":"https://api.github.com/users/esgibter/repos","events_url":"https://api.github.com/users/esgibter/events{/privacy}","received_events_url":"https://api.github.com/users/esgibter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/esgibter/fandomstats","description":"Fandom Statistics","fork":false,"url":"https://api.github.com/repos/esgibter/fandomstats","forks_url":"https://api.github.com/repos/esgibter/fandomstats/forks","keys_url":"https://api.github.com/repos/esgibter/fandomstats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/esgibter/fandomstats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/esgibter/fandomstats/teams","hooks_url":"https://api.github.com/repos/esgibter/fandomstats/hooks","issue_events_url":"https://api.github.com/repos/esgibter/fandomstats/issues/events{/number}","events_url":"https://api.github.com/repos/esgibter/fandomstats/events","assignees_url":"https://api.github.com/repos/esgibter/fandomstats/assignees{/user}","branches_url":"https://api.github.com/repos/esgibter/fandomstats/branches{/branch}","tags_url":"https://api.github.com/repos/esgibter/fandomstats/tags","blobs_url":"https://api.github.com/repos/esgibter/fandomstats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/esgibter/fandomstats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/esgibter/fandomstats/git/refs{/sha}","trees_url":"https://api.github.com/repos/esgibter/fandomstats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/esgibter/fandomstats/statuses/{sha}","languages_url":"https://api.github.com/repos/esgibter/fandomstats/languages","stargazers_url":"https://api.github.com/repos/esgibter/fandomstats/stargazers","contributors_url":"https://api.github.com/repos/esgibter/fandomstats/contributors","subscribers_url":"https://api.github.com/repos/esgibter/fandomstats/subscribers","subscription_url":"https://api.github.com/repos/esgibter/fandomstats/subscription","commits_url":"https://api.github.com/repos/esgibter/fandomstats/commits{/sha}","git_commits_url":"https://api.github.com/repos/esgibter/fandomstats/git/commits{/sha}","comments_url":"https://api.github.com/repos/esgibter/fandomstats/comments{/number}","issue_comment_url":"https://api.github.com/repos/esgibter/fandomstats/issues/comments{/number}","contents_url":"https://api.github.com/repos/esgibter/fandomstats/contents/{+path}","compare_url":"https://api.github.com/repos/esgibter/fandomstats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/esgibter/fandomstats/merges","archive_url":"https://api.github.com/repos/esgibter/fandomstats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/esgibter/fandomstats/downloads","issues_url":"https://api.github.com/repos/esgibter/fandomstats/issues{/number}","pulls_url":"https://api.github.com/repos/esgibter/fandomstats/pulls{/number}","milestones_url":"https://api.github.com/repos/esgibter/fandomstats/milestones{/number}","notifications_url":"https://api.github.com/repos/esgibter/fandomstats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/esgibter/fandomstats/labels{/name}","releases_url":"https://api.github.com/repos/esgibter/fandomstats/releases{/id}","deployments_url":"https://api.github.com/repos/esgibter/fandomstats/deployments","created_at":"2014-04-28T07:57:34Z","updated_at":"2018-04-12T21:09:51Z","pushed_at":"2018-05-07T15:21:10Z","git_url":"git://github.com/esgibter/fandomstats.git","ssh_url":"git@github.com:esgibter/fandomstats.git","clone_url":"https://github.com/esgibter/fandomstats.git","svn_url":"https://github.com/esgibter/fandomstats","homepage":"","size":1645,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":15,"license":null,"forks":0,"open_issues":15,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/esgibter/fandomstats/pulls/85"},"html":{"href":"https://github.com/esgibter/fandomstats/pull/85"},"issue":{"href":"https://api.github.com/repos/esgibter/fandomstats/issues/85"},"comments":{"href":"https://api.github.com/repos/esgibter/fandomstats/issues/85/comments"},"review_comments":{"href":"https://api.github.com/repos/esgibter/fandomstats/pulls/85/comments"},"review_comment":{"href":"https://api.github.com/repos/esgibter/fandomstats/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/esgibter/fandomstats/pulls/85/commits"},"statuses":{"href":"https://api.github.com/repos/esgibter/fandomstats/statuses/ae2084b20b6c87f515922e977ebc50d366eed7fb"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":6,"additions":398,"deletions":221,"changed_files":6}}
{"actor":{"display_login":"annathecrow"}}