phantomjs/examples/tweets.coffee

8 lines
252 B
CoffeeScript
Raw Normal View History

if phantom.state.length == 0
phantom.state = 'tweets'
phantom.open 'http://mobile.twitter.com/SenchaInc'
else
list = document.querySelectorAll 'span.status'
console.log i.innerHTML.replace(/<.*?>/g, '') for i in list
phantom.exit()