Welcome to LinkScout gem!
LinkScout helps users to find broken links by analysing response code or body.
It can take single or multiple URLs as input making it easy to handle link checking in larger batches. It can also follow links through redirect chains making sure links eventually work for your users.
Add this line to your application's Gemfile:
gem 'link_scout'
And then execute:
$ bundle
Or install it yourself as:
$ gem install link_scout
options = {
success: 200,
follow: true,
limit: 1,
target: 'http://target.com',
deeplink_param: 'deeplink',
pattern: /abc/i,
antipattern: /cde/i,
}
LinkScout::run(url, options)
LinkScout::run(url: url, option: value)
LinkScout::run([url, url1, url2], options)
LinkScout::run([{ url: url }, { url: url1, option: value }])
Bug reports and pull requests are welcome on GitHub at https://github.com/pcvg/link_scout/issues. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the LinkScout project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.