A look at dkhamsing/awesome_bot: 904 stars on GitHub, written primarily in Ruby, tracked under the Automation category. :white_check_mark: Validate links in awesome projects
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
awesome_bot checks for valid URLs in a file, it can be used to verify pull requests updating a README.
Installation
$ gem install awesome_bot
Usage
Command Line
Usage: awesome_bot [file or files]
awesome_bot [options]
-f, --files [files] Comma separated files to check
-a, --allow [errors] Status code errors to allow
--allow-dupe Duplicate URLs are allowed
--allow-ssl SSL errors are allowed
--allow-redirect Redirected URLs are allowed
--allow-timeout URLs that time out are allowed
--base-url [base url] Base URL to use for relative links
-d, --request-delay [seconds] Set request delay
-t, --set-timeout [seconds] Set connection timeout (default: 30)
--skip-save-results Skip saving results
-w, --white-list [urls] Comma separated URLs to white list
You can check multiple files (comma separated or * pattern, look below for details).
By default, duplicate URLs or any status code other than 200 are flagged as failures.
Use option --allow-dupe to allow duplicates.
Use option --allow-redirect to allow redirects.
Use option --allow to allow specific status code errors.
Use option --white-list (-w for short) to prevent links from being flagged: -w domain1.com/post/article,domain2.com white lists domain1.com/post/article and all links matching domain2.com.
$ awesome_bot README.md --allow-dupe --allow-redirect -w rubydoc,giphy
# allow redirects, dupes and white list all links matching rubydoc and giphy
$ awesome_bot README.md,README-zh.md
# check links in 2 files
$ awesome_bot docs/*.md
# check all Markdown files in the docs/ directory
$ awesome_bot README.md --allow-timeout -t 5
# speed up validation by setting a timeout of 5 seconds per link request and allowing timeouts
$ awesome_bot README.md --allow 403,429
# allow status code errors 403 and 429
# --allow 301 would be similar to --allow-redirect
$ awesome_bot README.md --base-url https://github.com/IDR/idr-notebooks/blob/master/
# check relative links using the base URL provided
irb(main):001:0> require 'awesome_bot'
=> true
irb(main):002:0> content = File.read 'README.md'
=> "..."
irb(main):003:0> result = AwesomeBot.check content
=> #<AwesomeBot::Result:0x007fdde39f4408 @links=...>
# AwesomeBot Result with success, statuses_issues, dupes and more
irb(main):004:0> puts result.success ? 'No errors' : ':-('
:-(
More information at rubydoc.
Validate Pull Requests
Does your GitHub README contain a lot of links? awesome_bot can help you validate them when a pull request is created (or a commit is pushed). It is used by:
https://github.com/tiimgreen/github-cheat-sheet
https://github.com/enaqx/awesome-react
https://github.com/ziadoz/awesome-php
https://github.com/vsouza/awesome-ios
https://github.com/alebcay/awesome-shell
https://github.com/matteocrippa/awesome-swift
and more.
Tips
Use the keyword [ci skip] in your commit title/message to skip verification.
Use Danger.
GitHub Actions
To use awesome_bot with GitHub Actions (workflows), here is an example:
CircleCI, Codeship, and Semaphore CI support running tests without adding a file to the repo (a public configuration file can however help others contribute).
# Codeship
Setup
rvm use 2.4.1 --install
gem install awesome_bot
Test
awesome_bot README.md
To add the Travis CI build status badge above to your project, use the following code
[](https://travis-ci.org/<username>/<project>)
i.e.
[](https://travis-ci.org/dkhamsing/awesome_bot)
As it happens, the default code snippet provided contains a redirect so adding a badge could fail your status :sob:.. one way to fix this is to white list travis-ci, i.e.
- awesome_bot README.md --white-list travis-ci
You can also add a badge for other CI tools, check out shields.io.
Danger
Integrate awesome_bot with Danger and have results reported back to the pull request.
Here's the step in your Dangerfile:
# Check links
require 'json'
results = File.read 'ab-results-README.md-markdown-table.json'
j = JSON.parse results
if j['error']==true
fail j['title']
markdown j['message']
end
Contact
github.com/dkhamsing
twitter.com/dkhamsing
License
This project is available under the MIT license. See the LICENSE file for more info.
Does dkhamsing/awesome_bot have a project website?
No homepage URL was recorded for dkhamsing/awesome_bot in TopGit's last sync. The README tab above frequently contains screenshots and demo links, or check the repository description on GitHub.
How does dkhamsing/awesome_bot compare to other Automation projects?
dkhamsing/awesome_bot is tracked by TopGit in the Automation category, with 904 GitHub stars and written in Ruby. Browse the Automation topic page on TopGit to compare it against similar projects by stars and activity.
How many stars does dkhamsing/awesome_bot have?
dkhamsing/awesome_bot has 904 GitHub stars — refresh the page for the live number, or check github.com/dkhamsing/awesome_bot. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is dkhamsing/awesome_bot open source?
Yes — dkhamsing/awesome_bot ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/dkhamsing/awesome_bot.
What else is in the Automation space?
dkhamsing/awesome_bot is tracked by TopGit under the Automation category, alongside 11 GitHub-tagged topics. Trending and Topics pages list peer repositories of comparable stars and language.
What is dkhamsing/awesome_bot?
dkhamsing/awesome_bot (dkhamsing/awesome_bot) is a Ruby project on GitHub. From the project's own README: :white_check_mark: Validate links in awesome projects
Where do I read more about dkhamsing/awesome_bot?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/dkhamsing/awesome_bot is the definitive source.
Read full README in the tab above.
Is awesome_bot worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of awesome_bot.