{"id":16679686,"url":"https://github.com/buren/url_finder","last_synced_at":"2025-04-09T22:32:38.975Z","repository":{"id":59158768,"uuid":"145306400","full_name":"buren/url_finder","owner":"buren","description":"Find URLs in various file formats - supports markdown, HTML, sitemap.xml and regular text.","archived":false,"fork":false,"pushed_at":"2022-05-25T12:42:36.000Z","size":28,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T00:26:29.235Z","etag":null,"topics":["cli","rubygem","url-finder"],"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/buren.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-19T13:38:23.000Z","updated_at":"2022-05-25T12:32:15.000Z","dependencies_parsed_at":"2022-09-13T20:11:34.225Z","dependency_job_id":null,"html_url":"https://github.com/buren/url_finder","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buren%2Furl_finder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buren%2Furl_finder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buren%2Furl_finder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buren%2Furl_finder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buren","download_url":"https://codeload.github.com/buren/url_finder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248123852,"owners_count":21051541,"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":["cli","rubygem","url-finder"],"created_at":"2024-10-12T13:36:53.217Z","updated_at":"2025-04-09T22:32:38.940Z","avatar_url":"https://github.com/buren.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UrlFinder\n\nFind URLs in various file formats - supports markdown, HTML and regular text.\n\n- [Usage](#usage)\n- [CLI](#cli)\n\nSupports: Markdown, HTML, strings (regex) and sitemap.xml.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'url_finder'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install url_finder\n\n## Usage\n\nFind URLs in file, we will infer the format from the extension\n\n```ruby\nUrlFinder.from_file('README.md').each do |url|\n  puts \"Found: #{url}\"\nend\n```\n\nYou can explicitly pass the format if the file lacks an extension\n\n```ruby\nUrlFinder.from_file('README', 'md').each do |url|\n  puts \"Found: #{url}\"\nend\n```\n\nSupported formats are `markdown` (aliased as `md`), `html` and `string`.\n\nFind URLs in string\n```ruby\nhtml = '\u003ca href=\"http://example.com\"\u003eexample.com\u003c/a\u003e'\nUrlFinder.from(html, 'html').each do |url|\n  puts \"Found: #{url}\"\nend\n```\n\n## CLI\n\n```\nUsage: url_finder --help\n        --file=/path/to/file         Input file\n        --format=file_format         Input format (html, markdown, sitemap.xml, string)\n    -h, --help                       How to use\n```\n\n## Wish list\n\n- RDoc support\n- Sitemap.xml support\n- and..?\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`, 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/buren/url_finder.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburen%2Furl_finder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fburen%2Furl_finder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburen%2Furl_finder/lists"}