Last active
August 19, 2018 15:49
-
-
Save tjkendev/c4fc58ec010d068a7ae9fcaaac0e6020 to your computer and use it in GitHub Desktop.
Google Playの課金データを取得
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 以下ページで購入データを全表示した上で以下スクリプトを実行すると | |
// 購入データのCSVが出力される | |
// https://play.google.com/store/account?feature=gp_receipt | |
(function get_csv_purchase_data() { | |
const s = ["0,1,2,3,4,5"] // 列の名前 | |
$(".my-account-purchase-row").each(function(i, e){ | |
const el = $(e).find('.my-account-purchase-col') | |
const tmp = [] | |
el.each(function(i, e){ | |
tmp.push('"' + $(e).text().trim() + '"') | |
}) | |
s.push(tmp.join(",")); | |
}) | |
return s.join('\n') | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment