From 1be5f4b8985d816fbdc7e08976ef73e1cef078bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20=C5=9Acigacz?= Date: Thu, 1 Jun 2023 22:39:26 +0200 Subject: [PATCH] delete cookies --- application/functions/sentiment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/functions/sentiment.py b/application/functions/sentiment.py index b8ef8b0..d2534d1 100644 --- a/application/functions/sentiment.py +++ b/application/functions/sentiment.py @@ -40,7 +40,7 @@ def count_predictions(predictions): def scrapp_comments(url): comments= [] all = {} - for post in get_posts(post_urls=[url], cookies='fake.txt', options={"allow_extra_requests": False, "comments":True, "extra_info":True}): + for post in get_posts(post_urls=[url], options={"allow_extra_requests": False, "comments":True, "extra_info":True}): text_post = post['text'] for comment in post['comments_full']: comments.append(comment['comment_text'])