The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: October 8th 2015
- Original post
| from boto3.dynamodb.conditions import Key | |
| class logCenter(object): | |
| def __init__(self, **kwargs): | |
| self.__dict__.update(kwargs) | |
| # Update new followers to database (have already recieved direct messages) | |
| def dynamoPut(self, follower, table): | |
| table.put_item( |
| import boto3 | |
| class tableCreate(object): | |
| def __init__(self, **kwargs): | |
| self.__dict__.update(kwargs) | |
| # Query client and list_tables to see if table exists or not | |
| def queryCreate(self): | |
| # Instantiate your dynamo client object | |
| client = boto3.client('dynamodb') |
| import tweepy | |
| from keyStorage.keys import keys | |
| class apiConnect(): | |
| def __init__(self, **kwargs): | |
| self.__dict__.update(kwargs) | |
| # Authenticate user credentials and get access to twitter API | |
| def authentication(self): | |
| # Use user keys |
| I use the first | |
| —– BEGIN LICENSE —– | |
| Michael Barnes | |
| Single User License | |
| EA7E-821385 | |
| 8A353C41 872A0D5C DF9B2950 AFF6F667 | |
| C458EA6D 8EA3C286 98D1D650 131A97AB | |
| AA919AEC EF20E143 B361B1E7 4C8B7F04 |