logo

scripts

A bunch of scripts, some to be moved to their own repository git clone https://hacktivis.me/git/scripts.git

common.py (615B)


  1. from TwitterAPI import TwitterAPI
  2. f = {
  3. 'default': '\033[1m %s %s %s “\033[3m%s\033[0m”',
  4. 'favorite': '\033[1;33m %s %s %s “\033[3m%s\033[0m”',
  5. 'retweet': '\033[1;32m %s %s %s “\033[3m%s\033[0m”',
  6. 'follow': '\033[1m %s %s %s \033[0m',
  7. 'tweet': '%(id)s <\033[1m%(screen_name)s> — %(name)s \033[0m\n\t%(text)s'
  8. }
  9. friend_list_garbage = 'Twitter gave me friend list, I think it’s garbage, since I want the timeline'
  10. def api(consumer_key, consumer_secret, access_token_key, access_token_secret):
  11. return TwitterAPI(
  12. consumer_key,
  13. consumer_secret,
  14. access_token_key,
  15. access_token_secret
  16. )