{"id":19494801,"url":"https://github.com/ceejbot/ao3tags","last_synced_at":"2025-10-13T19:34:12.606Z","repository":{"id":7600640,"uuid":"8957977","full_name":"ceejbot/ao3tags","owner":"ceejbot","description":"collect all ao3 fic tags","archived":false,"fork":false,"pushed_at":"2017-05-02T18:07:37.000Z","size":2221,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-10T21:27:34.949Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ceejbot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-22T18:14:46.000Z","updated_at":"2021-12-13T13:12:56.000Z","dependencies_parsed_at":"2022-07-31T14:39:09.503Z","dependency_job_id":null,"html_url":"https://github.com/ceejbot/ao3tags","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ceejbot/ao3tags","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceejbot%2Fao3tags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceejbot%2Fao3tags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceejbot%2Fao3tags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceejbot%2Fao3tags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ceejbot","download_url":"https://codeload.github.com/ceejbot/ao3tags/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceejbot%2Fao3tags/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016917,"owners_count":26085888,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T21:33:22.829Z","updated_at":"2025-10-13T19:34:12.576Z","avatar_url":"https://github.com/ceejbot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Quick and dirty node.js script to fetch all the canonical freeform tags used by the [AO3](http://archiveofourown.org/). Requires a recent [node.js](https://nodejs.org).\n\nTo use, clone the repo then run `npm install`.\n\nTo collect new data: Run `./fetchtags.js` then run `parsepages.js` to process the result into json. The output file is `tags.json`. Keys are tags in lexical order; values are the counts reported by AO3.\n\nTo have fun with the data I've already collected: `./analyze.js --help`.\n\nWorking data set as of December 4 2016 is checked in here as `tags.json`.\n\n## fetchtags.js\n\nFetch the tag listing pages from AO3 for later munging. Fetches one at a time so as to not distress anybody's most robust servers. Because I am lazy, this depends on a pagecount constant to figure out if it's done. Will create a local directory named `./input/` and store files in it.\n\n## parsepages.js\n\nParses the output of `fetchtags.js` and turns it into a json blob in `tags.json`.\n\n## analyze.js\n\n```\nget a list of tags matching specific criteria\n\nOptions:\n  --cutoff, -c     tags with usage counts lower than this will not be considered\n  --filter, -f     string or pattern to filter for\n  --transform, -t  transform tags to canonical form                    [boolean]\n  --sort, -s       sorting criterion: lexical or count      [default: \"lexical\"]\n  --json, -j       output results in json format                       [boolean]\n  --help           Show help                                           [boolean]\n\nExamples:\n  analyze.js -c 200 -f hurt     filter for tags with \"hurt\" used at least 200 times\n  analyze.js -c 5000 -s count   show tags used more than 5000 times sorted by usage count\n  analyze.js -c 3000 file.json  read some other json file for data (defaults to tags.json)\n```\n\nThe transform option changes the tags to a no-spaces all-lower-case version with some inconsistencies cleaned up. Needs more work.\n\n`./analyze.js -c 3000 --sort count -t` gets you a list of tags that is mostly devoid of fandom-specific \u0026 content-free crud, ready to use.\n\n## LICENSE\n\nISC.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceejbot%2Fao3tags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fceejbot%2Fao3tags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceejbot%2Fao3tags/lists"}