Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisfranko/a527994369ece7cda8971fea2074e868 to your computer and use it in GitHub Desktop.
Save chrisfranko/a527994369ece7cda8971fea2074e868 to your computer and use it in GitHub Desktop.
gimmie dem tweets
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