项目作者: pcvg

项目描述 :
LinkScout is a Broken URL Checker with several options
高级语言: Ruby
项目地址: git://github.com/pcvg/link_scout.git
创建时间: 2018-04-03T08:45:51Z
项目社区:https://github.com/pcvg/link_scout

开源协议:MIT License

下载


LinkScout Build Status Coverage Status Gem Version

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.

Installation

Add this line to your application’s Gemfile:

  1. gem 'link_scout'

And then execute:

  1. $ bundle

Or install it yourself as:

  1. $ gem install link_scout

Usage

  1. options = {
  2. success: 200,
  3. follow: true,
  4. limit: 1,
  5. target: 'http://target.com',
  6. deeplink_param: 'deeplink',
  7. pattern: /abc/i,
  8. antipattern: /cde/i,
  9. }

Single URLS

  1. LinkScout::run(url, options)
  1. LinkScout::run(url: url, option: value)

Multiple with shared options

  1. LinkScout::run([url, url1, url2], options)

Multiple with individual options

  1. LinkScout::run([{ url: url }, { url: url1, option: value }])

Contributing

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.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the LinkScout project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.