{"id":46040247,"url":"https://github.com/violhex/rie","last_synced_at":"2026-03-01T06:12:39.754Z","repository":{"id":340679689,"uuid":"1167116939","full_name":"violhex/rie","owner":"violhex","description":"Simple script to extract images from Reddit","archived":false,"fork":false,"pushed_at":"2026-02-26T00:47:57.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-26T05:28:29.264Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/violhex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-26T00:41:05.000Z","updated_at":"2026-02-26T00:48:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/violhex/rie","commit_stats":null,"previous_names":["violhex/rie"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/violhex/rie","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/violhex%2Frie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/violhex%2Frie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/violhex%2Frie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/violhex%2Frie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/violhex","download_url":"https://codeload.github.com/violhex/rie/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/violhex%2Frie/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29962005,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T05:59:08.471Z","status":"ssl_error","status_checked_at":"2026-03-01T05:58:04.208Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-03-01T06:12:38.804Z","updated_at":"2026-03-01T06:12:39.720Z","avatar_url":"https://github.com/violhex.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reddit Image Extractor (RIE) \n\nDownload images from a Reddit post. \nHandles single images, gallery posts, and preview fallbacks. \nDeduplicates by content hash.\n\n# Wallpapers\n\nI've included this script in my wallpaper collection repository as it is great for collecting random images from Reddit.\nIf you're interested in what I've come across you can take a look here: \u003chttps://github.com/violhex/wallpapers\u003e\n\n## Install\n\nInstall as a persistent system command via `uv tool`:\n\n```bash\nuv tool install git+https://github.com/violhex/rie\n```\n\nThis exposes `rie` in `~/.local/bin`. Make sure that's on your `PATH`:\n\n```bash\n# ~/.bashrc or ~/.zshrc\nexport PATH=\"$HOME/.local/bin:$PATH\"\n```\n\n### Updating\n\n```bash\nuv tool upgrade rie\n```\n\n### Uninstall\n\n```bash\nuv tool uninstall rie\n```\n\n## Usage\n\n```\nrie \u003creddit_url\u003e -o \u003coutput_dir\u003e [options]\n```\n\n### Options\n\n| Flag | Default | Description |\n|---|---|---|\n| `-o, --output-dir` | required | Directory to save images (created if absent) |\n| `--max-images N` | unlimited | Stop after downloading N images |\n| `--delay MS` | 1000 | Milliseconds between requests |\n| `--timeout SECONDS` | 15 | HTTP connect+read timeout per request |\n| `--max-bytes BYTES` | 26214400 | Max file size per image (25 MB) |\n| `-v, --verbose` | off | Enable debug logging |\n\n## Security notes\n\n- Only accepts `https://` Reddit URLs (`reddit.com`, `www.reddit.com`, `old.reddit.com`, `redd.it`)\n- Only downloads from known Reddit/Imgur image hosts\n- Filenames are always generated locally — remote filenames are never trusted\n- Content-Type is validated before writing any bytes to disk\n- Downloads are streamed with a hard size cap (default 25 MB)\n- Retries only on transient server errors (5xx); rate-limit responses (429) surface immediately\n\n## Exit codes\n\n| Code | Meaning |\n|---|---|\n| `0` | Success |\n| `1` | Bad arguments or configuration error |\n| `2` | At least one image failed to download |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviolhex%2Frie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviolhex%2Frie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviolhex%2Frie/lists"}