Advertisement
Guest User

Ello

a guest
Sep 30th, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var numberOfUsers = 3000 // the number of users you want to follow (it will break after about 5000)
  2. function harvest() {
  3.  // keep scrolling the page to the bottom
  4.  $("#search").scrollTop($("#search")[0].scrollHeight);
  5.  // get all the follow buttons
  6.  var bs = $('*[data-capture=”noiseClicked”]')//.length
  7.  // figure out how many follow buttons you have
  8.  var len = bs.length
  9.  // show the number of people you have on the page because you’re impatient
  10.  console.log(len)
  11.  // if you have more than said number then stop harvesting
  12.  if ( len > numberOfUsers) {
  13.  } else {
  14.  // choose a random number of time for when to call harvest again, since internet speeds differ
  15.  setTimeout(harvest, Math.floor(Math.random() * 500) + 1);
  16.  }
  17. }
  18. // start harvesting
  19. harvest();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement