{"id":20013993,"url":"https://github.com/rztprog/unsplash-scraper-service","last_synced_at":"2025-09-14T15:57:50.988Z","repository":{"id":156179808,"uuid":"487776304","full_name":"rztprog/unsplash-scraper-service","owner":"rztprog","description":"Random unsplash url image scraper without API in Ruby","archived":false,"fork":false,"pushed_at":"2022-05-03T09:28:31.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-02T02:33:39.757Z","etag":null,"topics":["images","random","ruby","scraper","seed","unsplash","url"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/rztprog.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}},"created_at":"2022-05-02T08:50:46.000Z","updated_at":"2022-06-03T08:55:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"5acf0075-aa5e-47cc-8162-12ea46828ffe","html_url":"https://github.com/rztprog/unsplash-scraper-service","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rztprog/unsplash-scraper-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rztprog%2Funsplash-scraper-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rztprog%2Funsplash-scraper-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rztprog%2Funsplash-scraper-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rztprog%2Funsplash-scraper-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rztprog","download_url":"https://codeload.github.com/rztprog/unsplash-scraper-service/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rztprog%2Funsplash-scraper-service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275128935,"owners_count":25410374,"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","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"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":["images","random","ruby","scraper","seed","unsplash","url"],"created_at":"2024-11-13T07:38:48.769Z","updated_at":"2025-09-14T15:57:50.980Z","avatar_url":"https://github.com/rztprog.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unsplash-scraper-service\n\nIf you want a random unsplash url image scraper without the Unsplash API in Ruby, you can use this.\n\n## Requirements\n\n1. Gem open-uri\n2. Gem nokogiri\n\n## How to use\n\n1. Change the keyword in the rb file to search wathever you want\n2. Put the rb file in initializer and call him with UnsplashScraperService.new.call\n\n## Example for seed in rails\n\n```\nrequire \"faker\"\nrequire_relative \"../config/initializers/unsplash_scraper_service\"\n\nputs \"How much Flat(s) you want ?\"\nloop_n = STDIN.gets.chomp\n\nloop_n.to_i.times do\n  flat = Flat.new(\n    name: \"#{Faker::Address.community} in #{Faker::Address.city}\",\n    address: Faker::Address.full_address,\n    description: Faker::GreekPhilosophers.quote,\n    price_per_night: Faker::Number.within(range: 30..120),\n    number_of_guests: Faker::Number.within(range: 2..10),\n    picture: UnsplashScraperService.new.call\n  )\n  flat.save!\nend\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frztprog%2Funsplash-scraper-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frztprog%2Funsplash-scraper-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frztprog%2Funsplash-scraper-service/lists"}