Skip to content

e-dard/xpath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

A tiny function for fetching a web-page, applying an xpath expression and then returning the count of nodes as influx line-protocol.

For use with the Telegraf exec plugin.

Usage:

The function requires three arguments:

  • URL
  • xpath expressino
  • tagset (influx measurment and tag pairs)
$ xpath "https://www.example.com" "//button[contains(text(), 'In stock')]" "xpath,retailer=company"

About

teeny function for use with telegraf exec plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages