GeometrizeTwitterBot  1.0
Python Twitter bot for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables
Functions | Variables
config Namespace Reference

Module containing secret Twitter API keys and bot configuration info. More...

Functions

def validate_credentials
 Checks whether credentials have been filled out in the bot configuration file. More...
 

Variables

string OAUTH_CONSUMER_KEY = "YOUR_VALUE_HERE"
 
string OAUTH_CONSUMER_SECRET = "YOUR_VALUE_HERE"
 
string OAUTH_ACCESS_TOKEN = "YOUR_VALUE_HERE"
 
string OAUTH_ACCESS_SECRET = "YOUR_VALUE_HERE"
 
string UNCONFIGURED_CREDENTIAL_VALUE = "YOUR_VALUE_HERE"
 Secret Twitter app keys. More...
 
string TWITTER_BOT_USERNAME = "@Geometrizer"
 Twitter username of the account that will run the Geometrize bot. More...
 
list TWITTER_BOT_WATCH_ACCOUNTS = ['4730923097', '809439447796355072']
 Twitter user ids of accounts that the Geometrize bot will watch for new tweets. More...
 

Detailed Description

Module containing secret Twitter API keys and bot configuration info.

Function Documentation

def config.validate_credentials ( )

Checks whether credentials have been filled out in the bot configuration file.

14 
16  return (OAUTH_CONSUMER_KEY != UNCONFIGURED_CREDENTIAL_VALUE
17  and OAUTH_CONSUMER_SECRET != UNCONFIGURED_CREDENTIAL_VALUE
18  and OAUTH_ACCESS_TOKEN != UNCONFIGURED_CREDENTIAL_VALUE
19  and OAUTH_ACCESS_SECRET != UNCONFIGURED_CREDENTIAL_VALUE)
def validate_credentials
Checks whether credentials have been filled out in the bot configuration file.
Definition: config.py:14

Variable Documentation

string config.OAUTH_ACCESS_SECRET = "YOUR_VALUE_HERE"
string config.OAUTH_ACCESS_TOKEN = "YOUR_VALUE_HERE"
string config.OAUTH_CONSUMER_KEY = "YOUR_VALUE_HERE"
string config.OAUTH_CONSUMER_SECRET = "YOUR_VALUE_HERE"
string config.TWITTER_BOT_USERNAME = "@Geometrizer"

Twitter username of the account that will run the Geometrize bot.

list config.TWITTER_BOT_WATCH_ACCOUNTS = ['4730923097', '809439447796355072']

Twitter user ids of accounts that the Geometrize bot will watch for new tweets.

When a tweet contains images, Geometrize will geometrize the images and tweet them out. Note you can get look up account ids easily using various sites online "@NYPLpostcards", "@UkiuoeBot"

string config.UNCONFIGURED_CREDENTIAL_VALUE = "YOUR_VALUE_HERE"

Secret Twitter app keys.

Enter your own here. Never make these public. Used to error out if credentials aren't configured