From 80f2f40012ef803c42724b46db011388ef7acf6a Mon Sep 17 00:00:00 2001 From: Roy Ludan Date: Sat, 18 Mar 2023 00:44:28 +0200 Subject: [PATCH] Changed the sample rules according to website Taken from: https://developer.twitter.com/en/docs/twitter-api/tweets/filtered-stream/api-reference/post-tweets-search-stream-rules Signed-off-by: Roy Ludan --- Filtered-Stream/filtered_stream.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Filtered-Stream/filtered_stream.py b/Filtered-Stream/filtered_stream.py index 346ca32..72d8a85 100644 --- a/Filtered-Stream/filtered_stream.py +++ b/Filtered-Stream/filtered_stream.py @@ -52,8 +52,8 @@ def delete_all_rules(rules): def set_rules(delete): # You can adjust the rules if needed sample_rules = [ - {"value": "dog has:images", "tag": "dog pictures"}, - {"value": "cat has:images -grumpy", "tag": "cat pictures"}, + {"value": "dog has:media", "tag": "dog pictures"}, + {"value": "cat has:media -grumpy", "tag": "cat pictures"}, ] payload = {"add": sample_rules} response = requests.post(