mirror of
https://github.com/anatolykopyl/Twitter-Bot.git
synced 2026-03-26 12:54:49 +00:00
Cleaned the code up
Spacing mostly and unnecesarry comments
This commit is contained in:
@@ -10,10 +10,6 @@ import filecmp
|
||||
import shutil
|
||||
import check
|
||||
|
||||
|
||||
|
||||
#Pillow
|
||||
|
||||
#authorization in Twitter and clarifai
|
||||
from clarifai import rest
|
||||
from clarifai.rest import ClarifaiApp
|
||||
@@ -23,12 +19,7 @@ from keys import *
|
||||
app = ClarifaiApp(CLIENT_ID, CLIENT_SECRET)
|
||||
model = app.models.get("general-v1.3")
|
||||
|
||||
|
||||
|
||||
def id_generator(size=5, chars=string.ascii_letters + string.digits):
|
||||
return ''.join(random.choice(chars) for _ in range(size))
|
||||
|
||||
twitter = Twython(APP_KEY, APP_SECRET, OAUTH_TOKEN, OAUTH_TOKEN_SECRET)
|
||||
|
||||
|
||||
|
||||
twitter = Twython(APP_KEY, APP_SECRET, OAUTH_TOKEN, OAUTH_TOKEN_SECRET)
|
||||
Reference in New Issue
Block a user