Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2018
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Basic script which requires you to scroll manually to the bottom of the follower list, was too lazy to write a scroll down script so I just held Page-down
  2. var followers = document.querySelectorAll('.ProfileCard.js-actionable-user');
  3. var aFollow = [];
  4. followers.forEach(function(follower){
  5.     var fol = {};
  6.     fol["name"] = follower.querySelector('.fullname').textContent;
  7.     fol["handle"] = follower.querySelector('.username b').textContent;
  8.     fol["url"] = "http://twitter.com/" + fol["handle"];
  9.     aFollow.push(fol);
  10. });
  11. var myJSON = JSON.stringify(aFollow);
  12. //Call myJSON in console and copy it, trying to print it throws an undefined because of the size.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement