mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-12 21:28:29 +03:00
twitter tests fix
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from datetime import timezone
|
||||
import json
|
||||
import re
|
||||
import mimetypes
|
||||
@@ -91,7 +92,9 @@ class TwitterApiExtractor(Extractor):
|
||||
|
||||
result = Metadata()
|
||||
result.set_title(tweet.data.text)
|
||||
result.set_timestamp(get_datetime_from_str(tweet.data.created_at, "%Y-%m-%dT%H:%M:%S.%fZ"))
|
||||
result.set_timestamp(
|
||||
get_datetime_from_str(tweet.data.created_at, "%Y-%m-%dT%H:%M:%S.%fZ").replace(tzinfo=timezone.utc)
|
||||
)
|
||||
|
||||
urls = []
|
||||
if tweet.includes:
|
||||
|
||||
Reference in New Issue
Block a user