Skip to content

Commit 552b010

Browse files
author
Soheil Behnezhad
committed
Use verify credentials for getting tweets counts
1 parent 8209c32 commit 552b010

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.env
2+
rhc-set-env.sh
23

34
# Byte-compiled / optimized / DLL files
45
__pycache__/

app.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import threading
2+
import urllib
23
from core.utils.logging import debug
34

45
import standalone_runner
@@ -18,5 +19,5 @@ def run(self):
1819
if __name__ == '__main__':
1920
t = TimelineRelated()
2021
s = Standalone()
21-
# t.start()
22+
t.start()
2223
s.start()

scripts/standalone/dedicate_round_tweets/dedicate_round_tweets.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def get_tweets_count(self):
3434
if settings.DEBUG:
3535
return random.randint(0, 10000)
3636
log("Getting tweets")
37-
data = self.twitter.twitter.show_user(screen_name=settings.TWIZHOOSH_USERNAME)
37+
data = self.twitter.twitter.verify_credentials()
3838
return data['statuses_count']
3939

4040
def is_round(self, num):

0 commit comments

Comments
 (0)