Module: Sieve
- Defined in:
- lib/http_sieve.rb
Overview
Takes URLs on stdin, prints them to stdout if they return a 200 or 300 http status.
Inspired by github.com/tomnomnom/hacks/tree/master/anti-burl
Usage
$ ./sieve.rb < domains.txt
301 https://google.com
200 https://www.google.com
200 https://example.com
Defined Under Namespace
Classes: API
Instance Attribute Summary collapse
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Attribute Details
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
19 20 21 |
# File 'lib/http_sieve.rb', line 19 def uri @uri end |