Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am keithporcaro on github.
  • I am keithporcaro (https://keybase.io/keithporcaro) on keybase.
  • I have a public key ASBsYmmVaKkYm4pJllyd5sqx4VRKv8MTiscbgIi04CJt5wo

To claim this, I am signing this object:

@keithporcaro
keithporcaro / loiter.js
Created September 10, 2015 18:28
This is a quick and dirty casperjs script that will load a twitter profile or a list and loiter, waiting for new tweets to be posted. It will screen capture new tweets that get posted, and save the screencaps in tweets/[twitter handle]/[tweet id].png. You can set the interval and the url.
var casper = require('casper').create(
url = 'https://twitter.com/jaspermid/lists/open-data', //this will monitor a list or a user.
interval = 1000
);
casper.start(url);
casper.then(function(){
if(this.exists('.tweet')){
console.log("ok, we're good");