Skip to content

Instantly share code, notes, and snippets.

@cjp
Last active July 26, 2016 17:03
Show Gist options
  • Save cjp/75b4a3bdb03a20b72d18769f02cee8ff to your computer and use it in GitHub Desktop.
Save cjp/75b4a3bdb03a20b72d18769f02cee8ff to your computer and use it in GitHub Desktop.
A useful filter
(defun tw-nopol (tweet)
(setq mat nil)
(dolist (pat '("DNC" "RNC" "Bernie" "Clinton" "Hillary" "#DemsInPhilly" "Trump" "#RNCinCLE" "fascis" "politic" "conservati" "liberal" "election" "voting") mat)
(if (string-match pat (cdr (assq 'text tweet)))
(setq mat t))))
(twittering-visit-timeline '":exclude-if/tw-nopol/:home")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment