{"id":17697182,"url":"https://github.com/yutakobayashidev/splatoon-notion","last_synced_at":"2025-03-31T00:41:24.776Z","repository":{"id":112049523,"uuid":"485245480","full_name":"yutakobayashidev/splatoon-notion","owner":"yutakobayashidev","description":"Splatoon2 のバトルやサーモンランのデータを自動で Notion に保存する Google Apps Script","archived":false,"fork":false,"pushed_at":"2022-05-04T03:15:40.000Z","size":82,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T07:50:24.124Z","etag":null,"topics":["googleappsscript","notion-api","splatoon2"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yutakobayashidev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-25T06:15:03.000Z","updated_at":"2023-10-28T08:45:41.000Z","dependencies_parsed_at":"2023-07-31T10:31:56.217Z","dependency_job_id":null,"html_url":"https://github.com/yutakobayashidev/splatoon-notion","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutakobayashidev%2Fsplatoon-notion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutakobayashidev%2Fsplatoon-notion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutakobayashidev%2Fsplatoon-notion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yutakobayashidev%2Fsplatoon-notion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yutakobayashidev","download_url":"https://codeload.github.com/yutakobayashidev/splatoon-notion/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246399800,"owners_count":20770907,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["googleappsscript","notion-api","splatoon2"],"created_at":"2024-10-24T14:46:43.837Z","updated_at":"2025-03-31T00:41:24.756Z","avatar_url":"https://github.com/yutakobayashidev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# splatoon-notion\n\n![Demo](https://user-images.githubusercontent.com/91340399/166179175-61d80da6-3aee-4c99-9027-371c635fb426.jpg)\n\nSplatoon2 のバトルやサーモンランのデータを自動で Notion に保存する Google App Script です。\n\n## DEMO\n\nhttps://yutakobayashi.notion.site/Splatoon2-d66a5ae5905f4fc8b14636e138c4cc87\n\n## Usage\n\nこのスクリプトでは[イカリング 2](https://www.nintendo.co.jp/switch/aab6a/online/index.html)の API を利用しています。この API の利用は推奨されていないため利用は自己責任でお願いします。\n\n### iksm_session\n\nAPI へのアクセスを行うため iksm_session と呼ばれるトークンを取得します。\n\nこのトークンはプロキシツールで[Nintendo Switch Online](https://www.nintendo.co.jp/hardware/switch/onlineservice/app/)の通信内容を表示したり[iksm-chan](https://iksm.vercel.app/)と呼ばれるウェブアプリを利用することで取得できます。\n\n### ページの複製とデータベース id の取得\n\n以下のページを Notion 上で複製しバトル、サーモンラン、ルール、ステージ、ゲームモード、ブキ、サブウェポン、スペシャル、ギア、ブランドの各データベースの id を取得します。\n\nhttps://yutakobayashi.notion.site/Splatoon2-cc3b04c2ac22476fb5e189275e261247\n\n### プロパティの設定\n\nGoogle Apps Script のクラシックエディターなどでプロパティを以下のように設定します。\n\n- `\"iksm_session\": your iksm_session token`\n- `\"notionToken\": your Notion integration token`\n- `\"battle_database\": your Notion Battle Database id`\n- `\"salmon_run_database\": your Notion Salmon Run Database id`\n- `\"mode_database\": your Notion Game Mode Database id`\n- `\"rule_database\": your Notion Rule Database id`\n- `\"stage_database\": your Notion Stage Database id`\n- `\"weapon_database\": your Notion Weapon Database id`\n- `\"subweapon_database\": your Notion Sub Weapon Database id`\n- `\"specialweapon_database\": your Notion Special Weapon Database id`\n- `\"gear_database\": your Notion Gear Database id`\n- `\"brand_database\": your Notion Brand Database id`\n- `\"discordWebHookURL\": your Discord Webhook URL`\n\n### 定期実行\n\nmain 関数を定期実行することで自動で Notion にバトル履歴、サーモラン、使用したブキやギア、プレイしたステージなどのデータが自動的に作成されます。イカリング 2 の API の仕様上過去 50 件のバトルデータのみしか取得できないためデータが消えてしまう前に実行するといいでしょう。\n\n## TODO\n\n- ffmpeg と numpy と YouTube Data API の連携\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyutakobayashidev%2Fsplatoon-notion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyutakobayashidev%2Fsplatoon-notion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyutakobayashidev%2Fsplatoon-notion/lists"}