Remove snscrape and Python 3.12 restriction.

This commit is contained in:
erinhmclark
2025-01-08 20:46:22 +00:00
parent cc490f9c10
commit d80b4b7557
3 changed files with 15 additions and 204 deletions

View File

@@ -113,8 +113,7 @@ class TwitterArchiver(Archiver):
.set_timestamp(datetime.strptime(tweet["created_at"], "%a %b %d %H:%M:%S %z %Y"))
if not tweet.get("entities", {}).get("media"):
logger.debug('No media found, archiving tweet text only')
result.status = "twitter-ytdl"
return result
return result.success("twitter-ytdl")
for i, tw_media in enumerate(tweet["entities"]["media"]):
media = Media(filename="")
mimetype = ""