{"id":18722767,"url":"https://github.com/bronzdoc/olery_gem","last_synced_at":"2025-11-11T05:30:24.665Z","repository":{"id":89418500,"uuid":"45159570","full_name":"bronzdoc/olery_gem","owner":"bronzdoc","description":"Gem to retrieve a hotel url from different resources","archived":false,"fork":false,"pushed_at":"2015-11-04T00:58:28.000Z","size":192,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-18T06:42:46.073Z","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/bronzdoc.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2015-10-29T04:10:59.000Z","updated_at":"2015-11-04T03:25:43.000Z","dependencies_parsed_at":"2023-03-08T03:56:07.279Z","dependency_job_id":null,"html_url":"https://github.com/bronzdoc/olery_gem","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bronzdoc%2Folery_gem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bronzdoc%2Folery_gem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bronzdoc%2Folery_gem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bronzdoc%2Folery_gem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bronzdoc","download_url":"https://codeload.github.com/bronzdoc/olery_gem/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239587244,"owners_count":19663892,"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-07T13:42:49.747Z","updated_at":"2025-11-11T05:30:24.625Z","avatar_url":"https://github.com/bronzdoc.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Olery\nLittle gem to extract url from hotels\n\n# Demo\n[![asciicast](https://asciinema.org/a/2cu15gcxad4cd94v2uj4470pa.png)](https://asciinema.org/a/2cu15gcxad4cd94v2uj4470pa)\n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'olery'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install olery\n\n## Usage\n\n# Creating a parser\n```ruby\nhotel_parser1 = Proc.new do |page, word|\n  your parser logic...\nend\n```\n\n# Configure scraping resources\n```ruby\n#Resource.new(host, endpoint, method, text_box_query_param, extra_query_args, parser)\nOlery.configure do |config|\n  config.add Olery::Resource.new(\"hotels1.com\", \"/Search\", \"get\",  \"q\", {}, hotel_parser1)\n  config.add Olery::Resource.new(\"hotels2.com\", \"/searchresults.en-gb.html\", \"get\", \"ss\", { si: \"ai,co,ci,re,di\" }, hotel_parser2)\n  config.add Olery::Resource.new(\"hotels3.de\", \"/schnellsuche.php\", \"post\", \"query\", hotel_parser3)\nend\n```\n## TODO\n * Integration tests\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake false` 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`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/olery. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbronzdoc%2Folery_gem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbronzdoc%2Folery_gem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbronzdoc%2Folery_gem/lists"}