Last active
July 30, 2021 04:17
-
-
Save koki-h/1ca60fbee478351320aa94e325a9bdcb to your computer and use it in GitHub Desktop.
違法アップロードサイトからダウンロードリンクを抽出する
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
// 例:https://www.smfemdom.net/gr-143-%e3%80%90%ef%bc%a6%ef%bc%ad%e3%80%91%e3%81%82%e3%82%84%e3%81%ad%e9%81%a5%e8%8f%9c%e3%81%ab%e3%81%8f%e3%81%99%e3%81%90%e3%82%89%e3%82%8c%e3%83%aa%e3%82%af%e3%82%a8%e3%82%b9%e3%83%88/ | |
document.querySelectorAll('p').forEach( | |
function(e){ | |
if (e.innerText.indexOf("subyshare:") >= 0 ){ | |
console.log(e.querySelector('a').getAttribute('href')); | |
} | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment