Skip to content

Instantly share code, notes, and snippets.

@ntotani
Created September 6, 2012 14:10
Show Gist options
  • Save ntotani/3656657 to your computer and use it in GitHub Desktop.
Save ntotani/3656657 to your computer and use it in GitHub Desktop.
tweet message by Zombie.js
Browser = require "zombie"
username = process.argv[2]
password = process.argv[3]
message = process.argv[4]
browser = new Browser (debug:true, runScripts:false)
browser.visit "https://mobile.twitter.com/session/new", ->
browser.fill "username", username
browser.fill "password", password
browser.pressButton "commit", ->
browser.visit "https://mobile.twitter.com/compose/tweet", ->
browser.fill "tweet[text]", message
browser.pressButton "commit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment