Skip to content

Periodically check URLs and report back if text-patterns are found

License

Notifications You must be signed in to change notification settings

aburnheimer/webgrep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webgrep

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.

License

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.

Install

gem install webgrep

Usage

$ 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'

Contribute

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!

Prior Art

  • 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.

Contact

This project was initiated by Andrew Burnheimer.

About

Periodically check URLs and report back if text-patterns are found

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages