switch to tweepy

This commit is contained in:
msk
2022-09-12 01:31:09 -07:00
parent 2d7e6324cb
commit 2ab28ec5c8
8 changed files with 93 additions and 16 deletions
+18
View File
@@ -0,0 +1,18 @@
## Shared utility functions.
import os
global twAPI
twAPI = None
# returns system path to this project, which is
# up one level from this file's directory.
def get_project_dir():
return os.path.join(os.path.dirname(__file__), os.pardir)
# determine if tweet involves cross-company interaction
def is_cross_company(tweet):
pass
def clamp(n, smallest, largest):
return max(smallest, min(n, largest))