Check URLs and report back if text-patterns are found. Behavior is sought to emulate the CLI tool grep as close as possible.
URLs may be checked for the provided text-patterns only-once similarly to grep, or they may be polled for the patterns over and over at a set period.
Result output is made to STDOUT.
webgrep
is licensed under the Creative Commons 3.0 License. Details
can be found in the file LICENSE.
License-file referencing and other doc. formatting inspired by damiendallimore.
gem install webgrep
$ webgrep -p -t '1 day' -e cloudy -- 'http://www.weather.com/weather/right-now/Springfield+MO+USMO0828'
$ webgrep -e -n -i '\bcheck\b' -e patterns -- 'https://raw.github.com/aburnheimer/webgrep/master/README.md'
Please fork the GitHub project (https://github.com/aburnheimer/webgrep), make any changes, commit and push to GitHub, and submit a pull request. Including tests for your changes would be greatly appreciated!
-
Jef Poskanzer's Java WebGrep application looks to have been developed over 1996-1998. It reportedly searches a web subtree for a pattern; basically "grep" for the web. This ruby implementation serves exactly the same function.
-
On the other hand, none of the small programs Guido Socher developed in webgrep look to serve this furnction at all. The HTML::TagReader project, which succeeded the webgrep project, is a perl extension module which allows one to read local html/xml files by-tag as opposed to remotely-hosted ones.
This project was initiated by Andrew Burnheimer.
- Email:
- Twitter:
- @aburnheimer
- Github: