Created
March 22, 2020 02:40
-
-
Save ota42y/e6a69c17ce1b534841f1f46b3b810f2b to your computer and use it in GitHub Desktop.
技術書典 応援祭 の販売数集計スクリプト(2020/03/22時点)
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
out = [] | |
document.getElementsByClassName("css-1dbjc4n r-1l7z4oj r-ymttw5")[0].children.forEach(c => { | |
if (c.children.length == 1) { return; } // header | |
datetime = c.children[0].innerText.split("\n")[0]; | |
s = c.children[2].innerText.split("\n"); | |
title = s[0] | |
type = s[1] | |
price = c.children[3].innerText.split("\n")[0]; | |
out.push(datetime + "," + type + "," + title + "," + price); | |
}); | |
console.log(out.join("\n")); | |
Author
ota42y
commented
Mar 22, 2020
- サークルの販売履歴ページに移動
- 3/7以前のデータが出るまで「もっと読む」を押す
- デベロッパーコンソールから以下のスクリプトを実行
- 出力されたcsvを集計する
- 日付、種類、本の名前、価格 の4データになります
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment