FacebookPostsScraper icon indicating copy to clipboard operation
FacebookPostsScraper copied to clipboard

Increase number of scraped posts

Open danielk56 opened this issue 4 years ago • 7 comments

Hi,

Right now when I scrape, only 7 posts are returned. I was wondering if there is a way to increase the number of posts scraped

danielk56 avatar Jun 29 '20 18:06 danielk56

there is no any way to collect more posts or even i have ability to control on number of posts i get bcs this scripts is meaningless without this param

m07med176 avatar Jun 30 '20 11:06 m07med176

Yes, please let us know how to increase number of scraped posts ;)

robman1992 avatar Jun 30 '20 21:06 robman1992

hi Hugo, Is there a way to add an Infinite Scroll function? I have done an infinite scroll using nodejs but I am not sure how to do it with Python. I have the same issue - I can only scrape 5 posts. I would like to scrape more. So far, it works well - thank you for a great tutorial! Muchas gracias.

-A

Aidin12 avatar Jul 07 '20 02:07 Aidin12

we may need to use browser.get; with nodejs we use document.body.scrollHeight. How is this function written with Python?

Aidin12 avatar Jul 07 '20 02:07 Aidin12

Okey, let's talk about this functionality. This code only gets the last 5 posts of the profile because they are the ones that appear on the timeline, this in many cases is enough if you only want to monitor a profile. Previously, I have extracted older posts, but because I use a User Agent from an older mobile phone, Facebook limits the amount of historical posts that can be viewed in this kind of User Agent, so you cannot extract all posts from a profile. My code doesn't use Javascript to render profiles, it is very basic only to monitor profiles. In the next few days, when I have some time, I will apply a change to extract all the posts that the mobile version of Facebook allows my User Agent. Thank you all for the comments.

hhsm95 avatar Jul 07 '20 03:07 hhsm95

Hi I do a research project where I need to extract several thousand posts from a group. I have tried the Ultimate Facebook Scraper which works, but only for around 1700 posts due to javascripts slowing down the search (probably). Your output is really neat so I would be very happy if it was possible to use this script.

rytmisk avatar Sep 16 '20 09:09 rytmisk

is this still in the plan? to be implemented? this will be really useful for me too!

gvrkiran avatar Jan 18 '21 15:01 gvrkiran