{"id":19989174,"url":"https://github.com/clamytoe/random-picture","last_synced_at":"2026-02-25T19:35:05.392Z","repository":{"id":84639619,"uuid":"93215160","full_name":"clamytoe/Random-Picture","owner":"clamytoe","description":"Downloads a random image from wallhaven.cc","archived":false,"fork":false,"pushed_at":"2021-04-02T14:49:06.000Z","size":427,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-25T01:55:13.560Z","etag":null,"topics":["python3","wallhaven","wallpaper"],"latest_commit_sha":null,"homepage":null,"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/clamytoe.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":"2017-06-03T01:19:10.000Z","updated_at":"2025-09-25T08:08:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"ddc06770-11b8-46c7-b153-f00af5ca276c","html_url":"https://github.com/clamytoe/Random-Picture","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/clamytoe/Random-Picture","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clamytoe%2FRandom-Picture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clamytoe%2FRandom-Picture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clamytoe%2FRandom-Picture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clamytoe%2FRandom-Picture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clamytoe","download_url":"https://codeload.github.com/clamytoe/Random-Picture/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clamytoe%2FRandom-Picture/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29836315,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T19:08:47.527Z","status":"ssl_error","status_checked_at":"2026-02-25T18:59:04.705Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["python3","wallhaven","wallpaper"],"created_at":"2024-11-13T04:45:44.561Z","updated_at":"2026-02-25T19:35:05.358Z","avatar_url":"https://github.com/clamytoe.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Random-Picture\n\u003e Downloads a random image from wallhaven.cc and saves it as your desktop wallpaper.\n\nThis is a rewrite of my [randPic](https://github.com/clamytoe/randPic) script that does almost the same thing, but all in Python. This version cuts down on the calls to the site by cycling through all of the images that are scraped on each pass. Once those images have been cycled through, another request is made for more.\n\n## Setup\nIf you already have requests and BeautifulSoup4 installed, nothing more is needed. Simply run the script. If not, you can quickly setup a virtual environment by performing either of the following steps:\n\n```bash\ngit clone https://github.com/clamytoe/Random-Picture.git\ncd Random-Picture\n```\n\nIf using venv:\n```bash\npython3 -m venv venv\nsource ./venv/bin/activate\npip install -r requirements.txt\n```\n\nIf using [Anaconda](https://anaconda.org/):\n```bash\nconda env create\nsource activate rpic\n```\n\n## Running the script\nI've written the script so that default actions are performed by simply hitting any key, usually just the *Enter* key. The default action is denoted by the **[ ]** brackets. Simply keep going until you find an image that you like. If you like the image and would like to save it, simply enter a **y** when asked to back it up and when you are ready to stop the script, enter an **n** when it asks if you would like a different image.\n```bash\npython rpic.py\nRetrieved: Anime 1920x1080 anime Bleach\nBackup the image (y/[n])?\nWould you like a different image([y]/n)?\nRetrieved: People 1202x800 gamers Fnatic\nBackup the image (y/[n])?\nWould you like a different image([y]/n)?\nRetrieved: Anime 1920x1174 Clannad anime Sakagami Tomoyo Fujibayashi Kyou Sunohara Yôhei\nBackup the image (y/[n])?\nWould you like a different image([y]/n)?\nRetrieved: General 1920x1080 nature landscape\nBackup the image (y/[n])?\nWould you like a different image([y]/n)?\nRetrieved: People 2048x1363 women model brunette blue eyes portrait Eraj Asadi\nBackup the image (y/[n])?\nWould you like a different image([y]/n)?\nRetrieved: General 1920x1080 The Witcher 3: Wild Hunt video games\nBackup the image (y/[n])? y\nWould you like a different image([y]/n)? n\n```\n\n## Using the GUI Interface\n\nI've added a graphical interface in order to be able to preview the images before downloading the full size one.\n\n```bash\npython gui.py\n```\n\n![gui](images/gui.png)\n\n* ![reload](images/reload.png) Retrieve a new set of images\n* ![save](images/save.png) Save the current image\n* ![previous](images/previous.png) Load the previous image\n* ![slideshow](images/slideshow.png) Start the slideshow\n* ![next](images/next.png) Load the next image\n\n\u003e Note: The slideshow button turns into a STOP button when it's running so that you can stop it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclamytoe%2Frandom-picture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclamytoe%2Frandom-picture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclamytoe%2Frandom-picture/lists"}