Last active
January 26, 2023 06:04
-
-
Save ashleyconnor/755c1ed931f4c5174627b6770183ce29 to your computer and use it in GitHub Desktop.
Rip Activity History from Blind
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
// continually scroll to the bottom to load all comments | |
let comments = document.querySelectorAll("div.contents.c_activity li"); | |
[...comments].map((el) => { | |
let link = el.querySelectorAll(":scope a")[0].href | |
let text = el.querySelectorAll(":scope a")[0].innerText.trim(); | |
let date = el.querySelectorAll(":scope span.date")[0].innerText.trim(); | |
let detail = el.querySelectorAll(":scope div.detail")[0].innerText.trim(); | |
return { | |
link, | |
text, | |
date, | |
detail | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment