diff --git a/application/functions/sentiment.py b/application/functions/sentiment.py index 8a160c6..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 = 'cookies.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']) diff --git a/cookies.txt b/cookies.txt deleted file mode 100644 index 61f342b..0000000 --- a/cookies.txt +++ /dev/null @@ -1,12 +0,0 @@ -# Netscape HTTP Cookie File -# http://curl.haxx.se/rfc/cookie_spec.html -# This is a generated file! Do not edit. - -.facebook.com TRUE / TRUE 1686180732 dpr 1.25 -.facebook.com TRUE / TRUE 1701124313 datr 18p3ZDh9mw_mdpJuI8VFDU2q -.facebook.com TRUE / TRUE 1701127931 sb 3sp3ZGBg-JI_A1JQ39EQOM_8 -.facebook.com TRUE / TRUE 1686180732 wd 1536x726 -.facebook.com TRUE / TRUE 1701127931 c_user 100093227828880 -.facebook.com TRUE / TRUE 1701127931 xs 44%3AeM4M91tnIqOXGQ%3A2%3A1685575929%3A-1%3A-1 -.facebook.com TRUE / TRUE 1693351930 fr 0hOPKFX51z7CbDa9l.AWX3pYnlFnJEPuQJ2SZfNNNJ51M.Bkd9j4.ri.AAA.0.0.Bkd9j7.AWUlmK8f_OU -.facebook.com TRUE / TRUE 0 presence C%7B%22t3%22%3A%5B%5D%2C%22utc3%22%3A1685575937016%2C%22v%22%3A1%7D \ No newline at end of file