Skip to content

Instantly share code, notes, and snippets.

@tjkendev
Last active August 19, 2018 15:49
Show Gist options
  • Save tjkendev/c4fc58ec010d068a7ae9fcaaac0e6020 to your computer and use it in GitHub Desktop.
Save tjkendev/c4fc58ec010d068a7ae9fcaaac0e6020 to your computer and use it in GitHub Desktop.
Google Playの課金データを取得
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// 以下ページで購入データを全表示した上で以下スクリプトを実行すると
// 購入データの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