Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Download utility invoices from some of the popular utility vendors in Spain (Endesa, Vodafone).
Ruby
tag: v0.0.2

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
test
.gitignore
.rvmrc
Gemfile
Rakefile
Readme.md
autility.gemspec

Readme.md

autility

A scraper that automatically downloads PDF invoices from utility vendors. That's it.

It will focus mainly on spanish vendors, but pull requests will be accepted to support as many vendors as possible.

For now it supports downloading invoices from Endesa and Vodafone Spain.

Install

$ gem install autility

Usage

$ autility VENDOR --user USER --password PASSWORD [--month MONTH] [--output-folder OUTPUT_FOLDER]
$ autility --help
$ autility --help endesa
$ autility --help vodafone

Examples

Downloading the Endesa invoice for the current month:

$ autility endesa --user john --password doe

Downloading the Vodafone invoice for the past October and save it to ~/billing:

$ autility vodafone --user john --password doe --month 10 --output-folder ~/billing

Parsing the output

The output is simple, thus parseable by UNIX tools such as grep or awk. It looks like this:

Path: /Users/john/billing/vodafone_10_2011.pdf

For example, to open the file right after downloading it:

$ open `autility endesa --user john --password doe | grep Path: | awk '{print $2}'`

License

Released under the MIT License. Copyright 2011 Codegram Technologies

Something went wrong with that request. Please try again.