mirror of https://github.com/vitalif/phantomjs
8 lines
252 B
CoffeeScript
8 lines
252 B
CoffeeScript
![]() |
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()
|