{"id":20761838,"url":"https://github.com/james-p-d/redditimagescraper","last_synced_at":"2026-05-18T02:31:34.424Z","repository":{"id":170649476,"uuid":"291303768","full_name":"James-P-D/RedditImageScraper","owner":"James-P-D","description":"Console application for downloading images from Reddit in Python","archived":false,"fork":false,"pushed_at":"2021-07-04T20:43:35.000Z","size":2850,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-31T10:38:12.618Z","etag":null,"topics":["python","reddit","reddit-api","reddit-crawler","scraper"],"latest_commit_sha":null,"homepage":"","language":"Python","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/James-P-D.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":"2020-08-29T16:07:14.000Z","updated_at":"2021-07-04T20:43:37.000Z","dependencies_parsed_at":"2024-08-20T12:16:48.352Z","dependency_job_id":null,"html_url":"https://github.com/James-P-D/RedditImageScraper","commit_stats":null,"previous_names":["james-p-d/redditimagescraper"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/James-P-D/RedditImageScraper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/James-P-D%2FRedditImageScraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/James-P-D%2FRedditImageScraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/James-P-D%2FRedditImageScraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/James-P-D%2FRedditImageScraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/James-P-D","download_url":"https://codeload.github.com/James-P-D/RedditImageScraper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/James-P-D%2FRedditImageScraper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33162607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"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":["python","reddit","reddit-api","reddit-crawler","scraper"],"created_at":"2024-11-17T10:26:44.230Z","updated_at":"2026-05-18T02:31:34.409Z","avatar_url":"https://github.com/James-P-D.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RedditImageScraper\n\nConsole application for downloading images from Reddit in Python\n\n![Screenshot](https://github.com/James-P-D/RedditImageScraper/blob/master/screenshot.gif)\n\n## Introduction\n\nThis short Python script was created for the mass-downloading of images from [Reddit](https://reddit.com/). It will be used later for creating data-sets for several Machine Learning projects.\n\nIn order to use the script, you will have to have a Reddit account sign-up to create a [developer account](https://www.reddit.com/prefs/apps/). You will be assigned a `client_id` and `client_secret` which you have to enter in [config.ini](https://github.com/James-P-D/RedditImageScraper/blob/master/src/RedditImageScraper/RedditImageScraper/config.ini) before you run the script.\n\n## Usage\n\nThe `-r` parameter provides a list of sub-reddits to search.  \nThe `-st` parameter can specify the maximum number of images to download from each sub-reddit. Defaults to 1000.  \nThe `-t` parameter can specify the total number of images to download across all sub-reddits before we abort. Defaults to 10000.  \nThe `-f` parameter can specify the folder into which we download the images. Defaults to `download`.  \n\nFor example, to download at-most 20 pictures from the [dogpictures](https://www.reddit.com/r/dogpictures/), [dogswithjobs](https://www.reddit.com/r/dogswithjobs/), [GuiltyDogs](https://www.reddit.com/r/GuiltyDogs/), and [dogs](https://www.reddit.com/r/dogs/) sub-reddits, aborting when we have 50 files in total, and saving the files to a folder titled `dog`, we would use the following:\n\n```\npython RedditImageScraper.py -r dogpictures dogswithjobs GuiltyDogs dog -st 20 -t 50 -f dogs\n```\n\nThis should produce something like the following:\n\n```\nDownloading from dogpictures\n3tdfpayjp1k51.jpg\ncuz4a5np90k51.jpg\n1e1g882z40k51.jpg\nxX3OQgP.jpg\nfuatv49mizj51.jpg\ntk9khtspb1k51.jpg\npgbxxakm63k51.jpg\noeUI8Iy.jpg\nvqklutghc1k51.jpg\n1ctn7f0390k51.jpg\nr7995a1dd3k51.jpg\nqbjj06vaa0k51.jpg\nq6nl05omyzj51.jpg\nbl8bi5tsu2k51.jpg\ngxc78spvxxj51.jpg\nw0pdsr1hsyj51.jpg\n9h19nq1k5vj51.jpg\ny67tpittfyj51.jpg\nDownloaded 18 from dogpictures\n\nDownloading from dogswithjobs\n5xxpn6xs7xj51.png\n3mrgwnlum1k51.jpg\nrs2uecgnb1k51.jpg\ny077mg1974k51.jpg\nkci6u8pc02k51.jpg\niho9wex0qrj51.jpg\n109eyp6kjyj51.jpg\ni86x3o6dutj51.jpg\nDownloaded 8 from dogswithjobs\n\nDownloading from GuiltyDogs\n8z89s7a89dj51.jpg\nc9rf2r516li51.jpg\npbdqr853rsh51.jpg\ne9xihfbqdeh51.jpg\n53gamygu9ch51.jpg\nd3tq02dbbyg51.jpg\nifsmwutou2h51.jpg\nDownloaded 7 from GuiltyDogs\n\nDownloading from dog\n1kloilrhc1k51.jpg\nbwe1go65h1k51.jpg\n8118vyqeg1k51.jpg\nbajprhddg0k51.jpg\nrlc7n4m6q0k51.jpg\nz9p8llkuyyj51.jpg\ndhdi10myx2k51.jpg\n6zflnt9hozj51.jpg\nniptrbxzf2k51.jpg\njxi3vrd901k51.jpg\nu8eykob35yj51.jpg\n5hwj8cce6zj51.png\n9nr2t4f0vzj51.jpg\nozs8tuu7mzj51.jpg\n0h1fwfqhh3k51.jpg\nDownloaded 15 from dog\n\nDownloaded 48 in total\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjames-p-d%2Fredditimagescraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjames-p-d%2Fredditimagescraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjames-p-d%2Fredditimagescraper/lists"}