Sha256: e85e0e3dba1bf5e48a32bcc3d8d6909a4a6d1819fd6ee28ab66448a713b45094
Contents?: true
Size: 998 Bytes
Versions: 2
Compression:
Stored size: 998 Bytes
Contents
# List following and followers from several accounts users= [ 'sencha' 'aconran' 'adityabansod' 'ambisinister' 'arnebech' 'ariyahidayat' 'arthurakay' 'bmoeskau' 'darrellmeyer' 'davidfoelber' 'DavidKaneda' 'donovanerba' 'edspencer' 'evantrimboli' 'ExtAnimal' 'jamieavins' 'jarrednicholls' 'jayrobinson' 'lojjic' 'luckymethod' 'merrells' 'mmullany' 'philogb' 'philstrong' 'rdougan' 'SubtleGradient' '__ted__' 'tmaintz' 'WesleyMoy' 'whereisthysting' ] 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.timeline-following').innerText console.log user + ': ' + data callback.apply() process = () -> if (users.length > 0) user = users[0] users.splice(0, 1) follow(user, process) else phantom.exit() process()
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
phantomjs.rb-0.0.2 | vendor/phantomjs-1.4.1_OSX/examples/follow.coffee |
phantomjs.rb-0.0.1 | vendor/phantomjs-1.4.1_OSX/examples/follow.coffee |