From d37ddb1a16f88a86a7bf32c306d703a653820340 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Aug 2023 01:32:03 +0000 Subject: [PATCH 1/5] Bump pymongo from 4.4.0 to 4.5.0 Bumps [pymongo](https://github.com/mongodb/mongo-python-driver) from 4.4.0 to 4.5.0. - [Release notes](https://github.com/mongodb/mongo-python-driver/releases) - [Changelog](https://github.com/mongodb/mongo-python-driver/blob/master/doc/changelog.rst) - [Commits](https://github.com/mongodb/mongo-python-driver/compare/4.4.0...4.5.0) --- updated-dependencies: - dependency-name: pymongo dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 1e12ca2..773fcc7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -pymongo==4.4.0 +pymongo==4.5.0 boto3==1.28.1 requests==2.31.0 Pillow==10.0.0 From eb7dcfbd688fe675f2fd089af2651d5a02928bc5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Aug 2023 01:32:08 +0000 Subject: [PATCH 2/5] Bump flask from 2.2.3 to 2.3.3 Bumps [flask](https://github.com/pallets/flask) from 2.2.3 to 2.3.3. - [Release notes](https://github.com/pallets/flask/releases) - [Changelog](https://github.com/pallets/flask/blob/main/CHANGES.rst) - [Commits](https://github.com/pallets/flask/compare/2.2.3...2.3.3) --- updated-dependencies: - dependency-name: flask dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 1e12ca2..ddeb6fa 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,6 +2,6 @@ pymongo==4.4.0 boto3==1.28.1 requests==2.31.0 Pillow==10.0.0 -Flask==2.2.3 +Flask==2.3.3 Flask-Cors==4.0.0 yt-dlp==2022.7.18 \ No newline at end of file From 2f0918be903820b829143423d08775764530f76b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 28 Aug 2023 12:51:10 +0000 Subject: [PATCH 3/5] Bump boto3 from 1.28.1 to 1.28.35 Bumps [boto3](https://github.com/boto/boto3) from 1.28.1 to 1.28.35. - [Release notes](https://github.com/boto/boto3/releases) - [Changelog](https://github.com/boto/boto3/blob/develop/CHANGELOG.rst) - [Commits](https://github.com/boto/boto3/compare/1.28.1...1.28.35) --- updated-dependencies: - dependency-name: boto3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 491c5f1..b983298 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ pymongo==4.5.0 -boto3==1.28.1 +boto3==1.28.35 requests==2.31.0 Pillow==10.0.0 Flask==2.3.3 From 5a41277ec4de7d8a9034fdc993d0824faf31c540 Mon Sep 17 00:00:00 2001 From: Dylan Date: Fri, 29 Sep 2023 16:32:19 +0100 Subject: [PATCH 4/5] Added possibly_sensitive to API (#147) and qrtURL --- twitfix.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/twitfix.py b/twitfix.py index c25029a..319c9f6 100644 --- a/twitfix.py +++ b/twitfix.py @@ -215,6 +215,10 @@ def twitfix(sub_path): media.append(zipurl) media_extended.append({"url":zipurl,"type":"zip"}) + qrtURL = None + if 'quoted_status_id_str' in tweetL: + qrtURL = "https://twitter.com/i/status/" + tweetL['quoted_status_id_str'] + apiObject = { "text": tweetL["full_text"], "likes": tweetL["favorite_count"], @@ -228,7 +232,9 @@ def twitfix(sub_path): "conversationID": tweetL["conversation_id_str"], "mediaURLs": media, "media_extended": media_extended, - "hashtags": hashtags + "possibly_sensitive": tweetL["possibly_sensitive"], + "hashtags": hashtags, + "qrtURL": qrtURL, } try: apiObject["date_epoch"] = int(datetime.strptime(tweetL["created_at"], "%a %b %d %H:%M:%S %z %Y").timestamp()) From c6ff71aec0c5fe328255a07270f6aea4cfe35ffd Mon Sep 17 00:00:00 2001 From: Dylan Date: Sat, 30 Sep 2023 22:14:24 +0100 Subject: [PATCH 5/5] Fixed issue with Text posts in API --- twitfix.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/twitfix.py b/twitfix.py index 319c9f6..34e8129 100644 --- a/twitfix.py +++ b/twitfix.py @@ -219,6 +219,9 @@ def twitfix(sub_path): if 'quoted_status_id_str' in tweetL: qrtURL = "https://twitter.com/i/status/" + tweetL['quoted_status_id_str'] + if 'possibly_sensitive' not in tweetL: + tweetL['possibly_sensitive'] = False + apiObject = { "text": tweetL["full_text"], "likes": tweetL["favorite_count"],