Last active
September 4, 2025 11:08
-
-
Save yyya-nico/cf5ec21749b9eed77376ad07e2e67051 to your computer and use it in GitHub Desktop.
ニコニコ大百科のピコカキコ一覧からピコ情報をスクレイピングするDevtoolsスクリプト(コンソールに入力して使用)
This file contains hidden or 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
| $$('[class$=piko_list] td').map(elem => ({ | |
| id: elem.querySelector('[id^="piko"]').id.replace(/piko[a-z]*(\d+)(_u\d+)?/, '$1'), | |
| title: elem.querySelector('[class*="-piko"][class$="-inner"] a').textContent, | |
| source: elem.querySelector('[class*="-piko"][class$="-source"] a')?.textContent | |
| })) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment