cookies
This commit is contained in:
parent
385fda78d4
commit
89e72aec11
@ -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'])
|
||||||
|
Loading…
Reference in New Issue
Block a user