{"id":13394953,"url":"https://github.com/felipecsl/wombat","last_synced_at":"2025-05-14T14:10:13.053Z","repository":{"id":1845489,"uuid":"2770180","full_name":"felipecsl/wombat","owner":"felipecsl","description":"Lightweight Ruby web crawler/scraper with an elegant DSL which extracts structured data from pages.","archived":false,"fork":false,"pushed_at":"2024-01-24T10:05:43.000Z","size":2654,"stargazers_count":1316,"open_issues_count":24,"forks_count":129,"subscribers_count":49,"default_branch":"master","last_synced_at":"2025-04-11T06:15:17.079Z","etag":null,"topics":["crawler","dsl","ruby","scraper"],"latest_commit_sha":null,"homepage":"https://felipecsl.github.io/wombat/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"edavis10/Launching-Soon","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/felipecsl.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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":"2011-11-14T05:03:24.000Z","updated_at":"2025-03-05T04:06:11.000Z","dependencies_parsed_at":"2024-05-01T13:20:20.045Z","dependency_job_id":"ac2d42dc-86e6-48f3-949d-45015d4e2473","html_url":"https://github.com/felipecsl/wombat","commit_stats":{"total_commits":261,"total_committers":19,"mean_commits":"13.736842105263158","dds":"0.16475095785440608","last_synced_commit":"3be0866533a04f5c80867f746b8e89f97ec26f12"},"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipecsl%2Fwombat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipecsl%2Fwombat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipecsl%2Fwombat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipecsl%2Fwombat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/felipecsl","download_url":"https://codeload.github.com/felipecsl/wombat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253568654,"owners_count":21928905,"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":["crawler","dsl","ruby","scraper"],"created_at":"2024-07-30T17:01:37.297Z","updated_at":"2025-05-14T14:10:08.019Z","avatar_url":"https://github.com/felipecsl.png","language":"Ruby","readme":"# Wombat\n\n[![Gem Version](https://badge.fury.io/rb/wombat.svg)](https://badge.fury.io/rb/wombat)\n[![Code Climate](https://codeclimate.com/github/felipecsl/wombat.png)][codeclimate]\n[![Coverage Status](https://coveralls.io/repos/felipecsl/wombat/badge.png?branch=master)][coveralls]\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Ffelipecsl%2Fwombat.svg?type=shield)][fossa]\n\n[rubygems]: http://rubygems.org/gems/wombat\n[codeclimate]: https://codeclimate.com/github/felipecsl/wombat\n[coveralls]: https://coveralls.io/r/felipecsl/wombat?branch=master\n[fossa]: https://app.fossa.io/projects/git%2Bgithub.com%2Ffelipecsl%2Fwombat?ref=badge_shield\n\nWeb scraper with an elegant DSL that parses structured data from web pages.\n\n## Usage:\n\n`gem install wombat`\n\n## Scraping a page:\n\nThe simplest way to use Wombat is by calling `Wombat.crawl` and passing it a block:\n\n```ruby\nrequire 'wombat'\n\nWombat.crawl do\n  base_url \"https://www.github.com\"\n  path \"/\"\n\n  headline xpath: \"//h1\"\n  subheading css: \"p.alt-lead\"\n\n  what_is({ css: \".one-fourth h4\" }, :list)\n\n  links do\n    explore xpath: '/html/body/header/div/div/nav[1]/a[4]' do |e|\n      e.gsub(/Explore/, \"Love\")\n    end\n\n    features css: '.nav-item-opensource'\n    business css: '.nav-item-business'\n  end\nend\n```\n\n###### The code above is gonna return the following hash:\n\n```ruby\n{\n  \"headline\"=\u003e\"How people build software\",\n  \"subheading\"=\u003e\"Millions of developers use GitHub to build personal projects, support their businesses, and work together on open source technologies.\",\n  \"what_is\"=\u003e[\n    \"For everything you build\",\n    \"A better way to work\",\n    \"Millions of projects\",\n    \"One platform, from start to finish\"\n  ],\n  \"links\"=\u003e{\n    \"explore\"=\u003e\"Love\",\n    \"features\"=\u003e\"Open source\",\n    \"business\"=\u003e\"Business\"\n  }\n}\n```\n\n### This is just a sneak peek of what Wombat can do. For the complete documentation, please check the links below:\n\n### [Wiki](http://github.com/felipecsl/wombat/wiki)\n### [API Documentation](https://rubydoc.info/gems/wombat)\n### [Changelog](https://github.com/felipecsl/wombat/blob/master/CHANGELOG.md)\n\n## Contributing to Wombat\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## Contributors\n\n * Felipe Lima ([@felipecsl](https://github.com/felipecsl))\n * [List of all contributors](https://github.com/felipecsl/wombat/graphs/contributors)\n\n## Copyright\n\nCopyright (c) 2019 Felipe Lima. See LICENSE.txt for further details.\n\n\n## License\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Ffelipecsl%2Fwombat.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Ffelipecsl%2Fwombat?ref=badge_large)\n","funding_links":[],"categories":["Ruby","All","Web Crawling","1. language","Crawlers and Scrapers"],"sub_categories":["1.1 ruby"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelipecsl%2Fwombat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffelipecsl%2Fwombat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelipecsl%2Fwombat/lists"}