This commit is contained in:
Maciej Ścigacz 2023-06-01 00:43:12 +02:00
parent 385fda78d4
commit 89e72aec11

View File

@ -40,7 +40,7 @@ def count_predictions(predictions):
def scrapp_comments(url): def scrapp_comments(url):
comments= [] comments= []
all = {} all = {}
for post in get_posts(post_urls=[url], options={"allow_extra_requests": False, "comments":True, "extra_info":True}): for post in get_posts(post_urls=[url], cookies = 'cookies.txt', options={"allow_extra_requests": False, "comments":True, "extra_info":True}):
text_post = post['text'] text_post = post['text']
for comment in post['comments_full']: for comment in post['comments_full']:
comments.append(comment['comment_text']) comments.append(comment['comment_text'])