Open sebassaras02 opened 2 years ago
In the Notes section, kevinzg states:
But in my experience, passing a Facebook account as argument:
for post in get_posts(
# arguments here
credentials = ('username', 'password'),
# more arguments here
):
will, more often than not, bring back reactions from the posts. At least more often than using a cookies file. Be warned though, Facebook will often try and lock your account due to "suspicious behaviour", it will prompt you to validate your account and/or change your password and then will let you go on your way.
Hello, I did a function to save the post that I am scrapping. However, sometimes I got the reactions. Almost all the times, I got in 'reactions': None. My function is the following code:
def get_post(user): a = [] for post in get_posts(user, pages=10, cookies = "file.txt", extra_info =True, options={"comments": True, "reactors": True} ): a.append(post) return a
Does anyone know how can I solve this issue?