Skip to content
Newer
Older
100644 51 lines (30 sloc) 1.25 KB
402b0c4 @txus Rename utilities to autility. Meh
txus authored
1 # autility
5c14e5f @txus First commit
txus authored
2
402b0c4 @txus Rename utilities to autility. Meh
txus authored
3 A scraper that automatically downloads PDF invoices from utility vendors. That's it.
5c14e5f @txus First commit
txus authored
4
5 It will focus mainly on spanish vendors, but pull requests will be accepted
6 to support as many vendors as possible.
7
f2e1ed4 @txus Add movistar. Finally.
txus authored
8 For now it supports downloading invoices from:
9
10 * Endesa
11 * Vodafone (Spain)
12 * Movistar (Spain)
14b0c5d @txus Bump
txus authored
13 * La Caixa (messages)
5c14e5f @txus First commit
txus authored
14
40074a3 @txus Update readme
txus authored
15 ## Install
16
402b0c4 @txus Rename utilities to autility. Meh
txus authored
17 $ gem install autility
40074a3 @txus Update readme
txus authored
18
19 ## Usage
20
402b0c4 @txus Rename utilities to autility. Meh
txus authored
21 $ autility VENDOR --user USER --password PASSWORD [--month MONTH] [--output-folder OUTPUT_FOLDER]
22 $ autility --help
23 $ autility --help endesa
24 $ autility --help vodafone
40074a3 @txus Update readme
txus authored
25
26 ## Examples
27
28 Downloading the Endesa invoice for the current month:
29
402b0c4 @txus Rename utilities to autility. Meh
txus authored
30 $ autility endesa --user john --password doe
40074a3 @txus Update readme
txus authored
31
32 Downloading the Vodafone invoice for the past October and save it to ~/billing:
33
402b0c4 @txus Rename utilities to autility. Meh
txus authored
34 $ autility vodafone --user john --password doe --month 10 --output-folder ~/billing
40074a3 @txus Update readme
txus authored
35
36 ## Parsing the output
37
38 The output is simple, thus parseable by UNIX tools such as grep or awk. It
39 looks like this:
40
41 Path: /Users/john/billing/vodafone_10_2011.pdf
42
43 For example, to open the file right after downloading it:
44
402b0c4 @txus Rename utilities to autility. Meh
txus authored
45 $ open `autility endesa --user john --password doe | grep Path: | awk '{print $2}'`
40074a3 @txus Update readme
txus authored
46
47 ## License
48
49 Released under the MIT License.
50 Copyright 2011 [Codegram Technologies](http://codegram.com)
Something went wrong with that request. Please try again.