Sha256: a0b2110c8b8db9f66f78bf9fe5873607cc7b901acb53bb213a9331bf5fb01899
Contents?: true
Size: 712 Bytes
Versions: 17
Compression:
Stored size: 712 Bytes
Contents
# List following and followers from several accounts users = [ 'PhantomJS' 'ariyahidayat' 'detronizator' 'KDABQt' 'lfranchi' 'jonleighton' '_jamesmgreene' 'Vitalliumm' ] follow = (user, callback) -> page = require('webpage').create() page.open 'http://mobile.twitter.com/' + user, (status) -> if status is 'fail' console.log user + ': ?' else data = page.evaluate -> document.querySelector('div.profile td.stat.stat-last div.statnum').innerText; console.log user + ': ' + data page.close() callback.apply() process = () -> if (users.length > 0) user = users[0] users.splice(0, 1) follow(user, process) else phantom.exit() process()
Version data entries
17 entries across 17 versions & 2 rubygems