NAME - simple Firefox HTML scraping from the command line

SYNOPSIS URL selector selector ...

  # Print page title title
  # The Perl Programming Language -

  # Print links with titles on tab CPAN, make links absolute --tab CPAN a //a/@href --uri=2
  # Print all links to JPG images on current page, make links absolute --current //a[@href=$"jpg"]/@href

Options: --tab title of tab to scrape (instead of URL) --current use currently active tab (instead of URL) --sep separator for the output columns, default is tab-separated --uri force absolute URIs for colum number x --no-uri force verbatim output for colum number x --mozrepl connection string to Firefox



Name of the tab to scrape. A substring is enough.


Separator character to use for columns. Default is tab.


Numbers of columns to convert into absolute URIs, if the known attributes do not everything you want.


Switches off the automatic translation to absolute URIs for known attributes like href and src.


Connection information for the mozrepl instance to use.


This program fetches an HTML page and extracts nodes matched by XPath or CSS selectors from it.

SEE ALSO - App::scrape

A similar program without the need for Javascript.

Mojolicious - also includes a CSS / Xpath scraper


The public repository of this module is


The public support forum of this program is


Max Maischein


Copyright 2011-2011 by Max Maischein


This module is released under the same terms as Perl itself.