GeometrizeTwitterBot  1.0
Python Twitter bot for geometrizing images into geometric primitives
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

◆ validate_credentials()

def config.validate_credentials ( )

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

15  return (OAUTH_CONSUMER_KEY != UNCONFIGURED_CREDENTIAL_VALUE
16  and OAUTH_CONSUMER_SECRET != UNCONFIGURED_CREDENTIAL_VALUE
17  and OAUTH_ACCESS_TOKEN != UNCONFIGURED_CREDENTIAL_VALUE
18  and OAUTH_ACCESS_SECRET != UNCONFIGURED_CREDENTIAL_VALUE)
19 

Variable Documentation

◆ OAUTH_ACCESS_SECRET

string config.OAUTH_ACCESS_SECRET = "YOUR_VALUE_HERE"

◆ OAUTH_ACCESS_TOKEN

string config.OAUTH_ACCESS_TOKEN = "YOUR_VALUE_HERE"

◆ OAUTH_CONSUMER_KEY

string config.OAUTH_CONSUMER_KEY = "YOUR_VALUE_HERE"

◆ OAUTH_CONSUMER_SECRET

string config.OAUTH_CONSUMER_SECRET = "YOUR_VALUE_HERE"

◆ TWITTER_BOT_USERNAME

string config.TWITTER_BOT_USERNAME = "@Geometrizer"

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

◆ TWITTER_BOT_WATCH_ACCOUNTS

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"

◆ UNCONFIGURED_CREDENTIAL_VALUE

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

config.validate_credentials
def validate_credentials()
Checks whether credentials have been filled out in the bot configuration file.
Definition: config.py:14