|
|
|
@ -38,12 +38,16 @@ def stream(): |
|
|
|
print(mastodon_username) |
|
|
|
print(mastodon_username) |
|
|
|
try: |
|
|
|
try: |
|
|
|
source_tweet = str(json_response['data']['id']) |
|
|
|
source_tweet = str(json_response['data']['id']) |
|
|
|
except: |
|
|
|
except Exception as e: |
|
|
|
|
|
|
|
print(json_response) |
|
|
|
|
|
|
|
print(e) |
|
|
|
source_tweet = 'user' |
|
|
|
source_tweet = 'user' |
|
|
|
# Add Mastodon username to db. |
|
|
|
# Add Mastodon username to db. |
|
|
|
db.insert_user(twitter_username, mastodon_username, source_tweet) |
|
|
|
db.insert_user(twitter_username, mastodon_username, source_tweet) |
|
|
|
|
|
|
|
|
|
|
|
except: |
|
|
|
except Exception as e: |
|
|
|
|
|
|
|
print(json_response) |
|
|
|
|
|
|
|
print(e) |
|
|
|
pass |
|
|
|
pass |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|