{"id":15571185,"url":"https://github.com/m0ngr31/sub-archive","last_synced_at":"2025-03-22T21:43:38.328Z","repository":{"id":141743539,"uuid":"350188065","full_name":"m0ngr31/sub-archive","owner":"m0ngr31","description":"A webapp that allows you to browse archived versions of different subreddits.","archived":false,"fork":false,"pushed_at":"2021-03-22T03:10:19.000Z","size":10,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-28T01:37:25.739Z","etag":null,"topics":["flask","reddit"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/m0ngr31.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-22T02:59:49.000Z","updated_at":"2025-01-24T15:57:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"80a6edd3-3bc4-43ec-bcfc-36d9bd0d2888","html_url":"https://github.com/m0ngr31/sub-archive","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0ngr31%2Fsub-archive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0ngr31%2Fsub-archive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0ngr31%2Fsub-archive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m0ngr31%2Fsub-archive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m0ngr31","download_url":"https://codeload.github.com/m0ngr31/sub-archive/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245026004,"owners_count":20549067,"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","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":["flask","reddit"],"created_at":"2024-10-02T17:56:12.896Z","updated_at":"2025-03-22T21:43:38.307Z","avatar_url":"https://github.com/m0ngr31.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sub Archive\n\n## What this is\nThis project is meant to be a simple way to view submissions and comments from subreddits that have been removed for one reason or another, or as a way to have a mirror of an active subreddit. I made this to view a few subreddits that got banned for various reasons.\n\n## What this isn't\nA way for someone to resurrect \"hate\" subreddits. You know who you are. Having said that, not every removed sub was hateful or violent. Reddit admins have banned plenty of subreddits (and it is their right to do so) and will continue to do so.\n\n\n# Setup\n\nBefore you can run the server, you need to make a backup of a subreddit you want with [Timesearch](https://github.com/voussoir/timesearch).\n\n## Timesearch\nAfter you've followed the instructions to get Timesearch running, you can run these commands to create an archive:\n\n```bash\npython timesearch.py get_submissions -r your_sub_here\npython timesearch.py get_comments -r your_sub_here\n```\n\nRepeat the above step for each subreddit you would like to backup.\n\nThis will create a different SQLite database file for each subreddit. Let's merge them together into one:\n```bash\nmkdir dbs\n# copy the first one into a new folder\ncp subreddits/your_sub_here/your_sub_here.db dbs/archive.db\n# Run this command for each of the other subreddits you've archived\npython timesearch.py merge_db --from subreddits/your_sub_here2/your_sub_here2.db --to dbs/archive.db\n```\n\nNow you have the archive the server needs to work.\n\n# Running\nThe simpliest way to get this working is by using Docker and mapping the `/app/db` folder to the directory where your archive lives.\n\n# TODO\n* Create favicon\n* Show dates on comments/submissions\n* Enable search functionality\n* ~~Add to DockerHub~~\n* Nicer styling for subreddits/comments\n* Have user profile pages\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm0ngr31%2Fsub-archive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm0ngr31%2Fsub-archive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm0ngr31%2Fsub-archive/lists"}