{"id":21453555,"url":"https://github.com/trivernis/reddit-riddle","last_synced_at":"2025-10-05T17:35:50.328Z","repository":{"id":34831651,"uuid":"184035937","full_name":"Trivernis/reddit-riddle","owner":"Trivernis","description":"A reddit download script.","archived":false,"fork":false,"pushed_at":"2022-12-08T03:14:21.000Z","size":20548,"stargazers_count":5,"open_issues_count":5,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-02T20:25:37.461Z","etag":null,"topics":["download","hacktoberfest","praw-reddit","python","reddit"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Trivernis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-29T08:57:22.000Z","updated_at":"2022-02-24T00:59:32.000Z","dependencies_parsed_at":"2023-01-15T09:26:20.019Z","dependency_job_id":null,"html_url":"https://github.com/Trivernis/reddit-riddle","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trivernis%2Freddit-riddle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trivernis%2Freddit-riddle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trivernis%2Freddit-riddle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trivernis%2Freddit-riddle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Trivernis","download_url":"https://codeload.github.com/Trivernis/reddit-riddle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226002930,"owners_count":17558153,"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":["download","hacktoberfest","praw-reddit","python","reddit"],"created_at":"2024-11-23T04:40:06.283Z","updated_at":"2025-10-05T17:35:45.306Z","avatar_url":"https://github.com/Trivernis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# riddle.py [![CodeFactor](https://www.codefactor.io/repository/github/trivernis/reddit-riddle/badge)](https://www.codefactor.io/repository/github/trivernis/reddit-riddle) [![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg?style=flat-square)](https://www.gnu.org/licenses/gpl-3.0) \n\nThis is a script for downloading images (or other media) from reddit subreddits.\n\n## Install\n\nThis script requires at least Python 3.6.\nAfter cloning this repository you need to install the requirements via \n\n```sh\npipenv install\n```\nor\n```sh\npip3 install -r requirements.txt\n```\n\n## Configuration\n\nBefore running you need to provide information for the reddit api.\nTo do so you must create an app in your reddit [account preferences](https://www.reddit.com/prefs/apps).\nThe application must be of type 'script'. \nThat must be done via a config.yaml file in the scripts directory.\nYou can copy the `default-config.yaml` file to the `config.yaml` file and change the keys\n`client_id` and `client_secret` under `credentials`.\n\n```yaml\n# user app credentials\ncredentials:\n  client_id: your app-client id  # change this\n  client_secret: your app-client secret  # change this\n\n# required extension of the file to be downloaded\nimage-extensions:\n  - png\n  - jpg\n  - jpeg\n\nmin-size: 5 # minimum size in kilobytes\nmin-mp: 0.5 # minimum siz ein megapixels\n```\n\n## Running\n\n### Help output\n\n```\nUsage: riddle.py [options] [subreddits]\n\nOptions:\n  -h, --help            show this help message and exit\n  -c COUNT, --count=COUNT\n                        The number of images to download for each subreddit.\n                        If not set it is the maximum fetchable number.\n  -o OUTPUT, --output=OUTPUT\n                        The name of the output folder. If none is specified,\n                        it's the subreddits name.\n  -z, --zip             Stores the images in a zip file if true\n  --nsfw                If set nsfw-content is also downloaded.\n  --lzma                If set the lzma-compression module is used.\n```\n\n### Example\n\nDownload all images from [r/EarthPorn](https://EarthPorn.reddit.com):\n\n```sh\npython3 riddle.py EarthPorn\n```\n\nDownload all images from [r/astrophotography](https://astrophotography.reddit.com) to a zip-file:\n\n```sh\npython3 riddle.py -z astrophotography\n```\n\nDownload a maximum of 200 images from [r/astrophotography](https://astrophotography.reddit.com) and [r/EarthPorn](https://EarthPorn.reddit.com) to one zip-file named coolpics.zip:\n\n```sh\npython3 riddle.py -z -c 100 -o coolpics astrophotography EarthPorn\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrivernis%2Freddit-riddle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrivernis%2Freddit-riddle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrivernis%2Freddit-riddle/lists"}