Created
March 4, 2020 19:08
-
-
Save chrisfranko/a527994369ece7cda8971fea2074e868 to your computer and use it in GitHub Desktop.
gimmie dem tweets
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
tweets = document.querySelectorAll('section[aria-labelledby*=\"accessible-list-\"] > div[aria-label] > div > div > div') | |
for(i = 0; i < tweets.length; i++){ | |
const article = tweets[i].querySelector("article div[data-testid=\"tweet\"]") | |
if(article){ | |
console.log(article.children[1].children[1].innerText) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment