Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //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
- var followers = document.querySelectorAll('.ProfileCard.js-actionable-user');
- var aFollow = [];
- followers.forEach(function(follower){
- var fol = {};
- fol["name"] = follower.querySelector('.fullname').textContent;
- fol["handle"] = follower.querySelector('.username b').textContent;
- fol["url"] = "http://twitter.com/" + fol["handle"];
- aFollow.push(fol);
- });
- var myJSON = JSON.stringify(aFollow);
- //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