{"id":20586048,"url":"https://github.com/charlotte-ruby/image_scraper","last_synced_at":"2025-04-14T21:11:28.504Z","repository":{"id":25953016,"uuid":"1808054","full_name":"charlotte-ruby/image_scraper","owner":"charlotte-ruby","description":"simple utility that pulls image URLs from a web page","archived":false,"fork":false,"pushed_at":"2022-12-27T23:11:48.000Z","size":653,"stargazers_count":21,"open_issues_count":0,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T09:21:18.312Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/charlotte-ruby.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-05-27T03:54:40.000Z","updated_at":"2023-08-28T17:34:41.000Z","dependencies_parsed_at":"2023-01-14T03:45:16.584Z","dependency_job_id":null,"html_url":"https://github.com/charlotte-ruby/image_scraper","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlotte-ruby%2Fimage_scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlotte-ruby%2Fimage_scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlotte-ruby%2Fimage_scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlotte-ruby%2Fimage_scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charlotte-ruby","download_url":"https://codeload.github.com/charlotte-ruby/image_scraper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248609814,"owners_count":21132918,"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":[],"created_at":"2024-11-16T07:10:04.907Z","updated_at":"2025-04-14T21:11:28.477Z","avatar_url":"https://github.com/charlotte-ruby.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ImageScraper\n[![ruby](https://github.com/charlotte-ruby/image_scraper/actions/workflows/ruby.yml/badge.svg)](https://github.com/charlotte-ruby/image_scraper/actions/workflows/ruby.yml)\n\nSimple utility that pulls image URLs from web page\n## Installation\n\nInstall in your application's Gemfile or as a standalone gem:\n\n```ruby\ngem 'image_scraper'\n```\n\nAnd then execute:\n\n```\n$ bundle install\n```\n\nStandalone install:\n\n```\n$ gem install image_scraper\n```\n\n## Usage\n\n```ruby\noptions = {\n    convert_to_absolute_url: true,\n    include_css_images: true # convert any relative images to absolute urls.\n    include_css_data_images: true # convert any data images (data:image/gif;base64....)\n}\n\nimage_scraper = ImageScraper::Client.new(\"http://www.rubygems.org\", options)\nimage_scraper.image_urls\n\n# =\u003e [\"https://rubygems.org/assets/github_icon.png\"\", \"https://rubygems.org/sponsors.png\"]\n```\n\n### CLI\n\n```\n$ image_scraper https://unsplash.com | head -n 2\nhttps://images.unsplash.com/photo-1471897488648\nhttps://images.unsplash.com/photo-1590073242678\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`. Releases are done via Github Actions.\n\nIf you prefer to use docker:\n\n```\ndocker-compose build\ndocker-compose run app\n```\n\nOnce inside the container, run the tests and you'll see output similar to this:\n\n```\n/usr/src/app # bundle exec rspec\n........................\n\nFinished in 0.54303 seconds (files took 0.95976 seconds to load)\n24 examples, 0 failures\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/charlotte-ruby/image_scraper. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/charlotte-ruby/image_scraper/blob/master/CODE_OF_CONDUCT.md).\n\n- Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet\n- Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it\n- Fork the project\n- Start a feature/bugfix branch\n- Commit and push until you are happy with your contribution\n- Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.\n- Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.\n\n## Copyright\n\nCopyright (c) 2011 John McAliley. See LICENSE.txt for\nfurther details.\n\n## Code of Conduct\n\nEveryone interacting in the ImageScraper project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/charlotte-ruby/image_scraper/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharlotte-ruby%2Fimage_scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharlotte-ruby%2Fimage_scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharlotte-ruby%2Fimage_scraper/lists"}