Webpayの支払履歴をまるっと保存する方法

* Webpayの管理画面が明日から使えなくなる。
* 支払履歴をすべて保存しておきたい。
* wgetで一括してダウンロードする。

WebPayログイン済みのブラウザで、インスペクタを開きWebPayの`_session_id`を調べる。下のコマンドにその値を入れて実行する。

```
wget --mirror \
     --header='Cookie: _session_id=xxxxxxxxxxxxxxxxxxxxxxxxx' \
     --page-requisites \
     --span-hosts \
     --quiet --show-progress \
     --convert-links \
     --no-host-directories \
     --directory-prefix=webpay \
     --adjust-extension \
     --execute robots=off \
     --include-directories=/billing_details,/live,/assets \
     https://webpay.jp/billing_details
```

参考: [wgetでサイト全体をまるごとダウンロードする(認証後ページも) - Qiita](http://qiita.com/suin/items/7241135f1684636652ac)

すると、こんなかんじでCSVを含めたファイルが保存されます。

```
webpay
├── assets
│   ├── application-263af96b7e67c05d87164f485acbba02.css
│   ├── application-99fa97ed5d16ed8c30778d3024b49396.js
│   ├── bootstrap
│   ├── brands.png
│   ├── card_types
│   ├── dashboard_sample.png
│   ├── font-awesome-7b1e9be565e363280ca8e8d06392eb39.css
│   ├── fontawesome-webfont.eot?
│   ├── fontawesome-webfont.eot?v=4.2.0
│   ├── fontawesome-webfont.svg?v=4.2.0
│   ├── fontawesome-webfont.ttf?v=4.2.0
│   ├── fontawesome-webfont.woff?v=4.2.0
│   ├── gui
│   ├── highcharts-43b202772fb11ebe247d5ab90a52d80f.js
│   ├── landing_background.png
│   └── rectangle_logo.png
├── billing_details
│   ├── bill_01qcT7g7aeHp1jt
│   ├── bill_01qcT7g7aeHp1jt.csv
│   ├── bill_01qcT7g7aeHp1jt.html
│   ├── bill_0m317wfvzb1u6DR
│   ├── bill_0m317wfvzb1u6DR.csv
│   ├── bill_0m317wfvzb1u6DR.html
│   ├── bill_1uegvKgn97uc1LW
│   ├── bill_1uegvKgn97uc1LW.csv
│   ├── bill_1uegvKgn97uc1LW.html
│   ├── bill_2KIfa72h0g0G8by
│   ├── bill_2KIfa72h0g0G8by.csv
│   ├── bill_2KIfa72h0g0G8by.html
│   ├── bill_2SXff83tV55keyz
│   ├── bill_2SXff83tV55keyz.csv
│   ├── bill_2SXff83tV55keyz.html
│   ├── bill_2yh0eX4Hedmw54j
│   ├── bill_2yh0eX4Hedmw54j.csv
│   ├── bill_2yh0eX4Hedmw54j.html
│   ├── bill_4187G0gVx5CPcff
│   ├── bill_4187G0gVx5CPcff.csv
│   ├── bill_4187G0gVx5CPcff.html
│   ├── bill_4Gs0uY86i7JK5yC
│   ├── bill_4Gs0uY86i7JK5yC.csv
│   ├── bill_4Gs0uY86i7JK5yC.html
│   ├── bill_5Cd7K70Ic7gI9zq
│   ├── bill_5Cd7K70Ic7gI9zq.csv
│   ├── bill_5Cd7K70Ic7gI9zq.html
│   ├── bill_5GnakAdqZ0kL4No
│   ├── bill_5GnakAdqZ0kL4No.csv
│   ├── bill_5GnakAdqZ0kL4No.html
│   ├── bill_6Kq3hC4mRcYUcGJ
│   ├── bill_6Kq3hC4mRcYUcGJ.csv
│   ├── bill_6Kq3hC4mRcYUcGJ.html
│   ├── bill_7KoeyoalT2693tt
│   ├── bill_7KoeyoalT2693tt.csv
│   ├── bill_7KoeyoalT2693tt.html
│   ├── bill_8lx6iga3Yeysen5
│   ├── bill_8lx6iga3Yeysen5.csv
│   ├── bill_8lx6iga3Yeysen5.html
│   ├── bill_8pDfKrdIRazmdzF
│   ├── bill_8pDfKrdIRazmdzF.csv
│   ├── bill_8pDfKrdIRazmdzF.html
│   ├── bill_9ls0215OQ2k00dN
│   ├── bill_9ls0215OQ2k00dN.csv
│   ├── bill_9ls0215OQ2k00dN.html
│   ├── bill_9xO0ixeFjc2v0Qk
│   ├── bill_9xO0ixeFjc2v0Qk.csv
│   ├── bill_9xO0ixeFjc2v0Qk.html
│   ├── bill_aSr1t5gFTbwm7mp
│   ├── bill_aSr1t5gFTbwm7mp.csv
│   ├── bill_aSr1t5gFTbwm7mp.html
│   ├── bill_ada7SX24Hd9jaE7
│   ├── bill_ada7SX24Hd9jaE7.csv
│   ├── bill_ada7SX24Hd9jaE7.html
│   ├── bill_btz8XL41zerzdRr
│   ├── bill_btz8XL41zerzdRr.csv
│   ├── bill_btz8XL41zerzdRr.html
│   ├── bill_cK43vrcyP5fw7tC
│   ├── bill_cK43vrcyP5fw7tC.csv
│   ├── bill_cK43vrcyP5fw7tC.html
│   ├── bill_cd00N057c15UdF7
│   ├── bill_cd00N057c15UdF7.csv
│   ├── bill_cd00N057c15UdF7.html
│   ├── bill_cxC8Xj4EP6Ad0bI
│   ├── bill_cxC8Xj4EP6Ad0bI.csv
│   ├── bill_cxC8Xj4EP6Ad0bI.html
│   ├── bill_d0x1xefIP9R0dHi
│   ├── bill_d0x1xefIP9R0dHi.csv
│   ├── bill_d0x1xefIP9R0dHi.html
│   ├── bill_dJZ6te6O3dDl0Ih
│   ├── bill_dJZ6te6O3dDl0Ih.csv
│   ├── bill_dJZ6te6O3dDl0Ih.html
│   ├── bill_eJU4UDfKY2HtexP
│   ├── bill_eJU4UDfKY2HtexP.csv
│   ├── bill_eJU4UDfKY2HtexP.html
│   ├── bill_f4w0Rkdh24QjaDH
│   ├── bill_f4w0Rkdh24QjaDH.csv
│   ├── bill_f4w0Rkdh24QjaDH.html
│   ├── bill_fS51Wm0Ws4SXfru
│   ├── bill_fS51Wm0Ws4SXfru.csv
│   ├── bill_fS51Wm0Ws4SXfru.html
│   ├── bill_fpebJMeM21jw63s
│   ├── bill_fpebJMeM21jw63s.csv
│   ├── bill_fpebJMeM21jw63s.html
│   ├── bill_gW8d4Z2Js9wH7ty
│   ├── bill_gW8d4Z2Js9wH7ty.csv
│   └── bill_gW8d4Z2Js9wH7ty.html
├── billing_details.html
└── live
    ├── charges
    ├── charges.html
    ├── charges?page=1.html
    ├── charges?page=2.html
    ├── charges?page=3.html
    ├── charges?page=4.html
    ├── customers
    ├── customers.html
    ├── dashboard.html
    ├── events
    ├── events.html
    ├── recursions
    ├── recursions.html
    └── webhook_histories.html

39 directories, 82 files
```