Git Product home page Git Product logo

urlobs's Introduction

UrlObs

Url Observer: monitor changes of web pages according to user-defined XPath rules. Written in Perl, use YAML config format. Dead simple.

Require (cpan install):

  • LWP::UserAgent
  • HTML::TreeBuilder::XPath
  • XML::XPath
  • XML::XPath::XMLParser
  • YAML::Syck
  • Digest::MD5
  • Text::Diff

Use:

perl urlobs.pl example.yaml

YAML format is a list of entry where:

  • url: is the url
  • xpath: XPath rule selecting monitored nodes (text extracted)
  • title: used for humans [optional]
  • interval: is the minimum fetching interval (seconds) [optional]
  • type: whether it is html or xml [missing means html]
  • no_order: whether we do a sorting (effectively ignoring the output ordering)
  • keep_old: whether we should ignore deletions by keeping old entries (useful for youtube RSS, they blink). This option forces no_order by default.
  • user_agent: Specify the browser signature, useful to circumvent certain useless site protections [optional].
  • cookie: raw data sent directly as the Cookie header [optional]

The file is modified by the program as a database. Look at example.yml for an example.

urlobs's People

Contributors

axel-angel avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.