Skip to content

Commit

Permalink
Update benji.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hmangukia authored Jul 12, 2018
1 parent e2e7d49 commit 78cd083
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions windows/benji.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ def events(frame,put):
cam.release()
cv2.destroyAllWindows()

#get top 10 tweets
elif link[0] =="get" and link[-1] == "tweets":
#Get top 10 tweets
elif link[0] == "get" and link[-1] == "tweets":
auth = OAuthHandler(twitterCredentials.consumer_key, twitterCredentials.consumer_secret)
auth.set_access_token(twitterCredentials.access_token, twitterCredentials.access_secret)
api = tweepy.API(auth)

for status in tweepy.Cursor(api.home_timeline).items(10):
print("\n",status.text)
print("By ",status.user.screen_name," at ",status.user.created_at)
print("\n", status.text)
print("By ", status.user.screen_name, " at ", status.user.created_at)

#Screenshot
elif put.startswith('take screenshot') or put.startswith("screenshot"):
Expand Down

0 comments on commit 78cd083

Please sign in to comment.