Project

autility

0.0
No commit activity in last 3 years
No release in over 3 years
Downloads utility invoices from common spanish firms such as Endesa or Vodafone.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

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
  • Vodafone (Spain)
  • Ono (Spain)
  • La Caixa (messages)

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