kevinzg / facebook-scraper

Scrape Facebook public pages without an API key
MIT License
2.45k stars 633 forks source link

Firm-generated posts and user-generated posts #16

Open w062611 opened 5 years ago

w062611 commented 5 years ago

Hi there,

With facebook-scraper, I was able to get posts by the page owner (I call it firm-generated posts). However, at the firm's FB page (see BMW's page in the following as one example), each individual user is also allowed to posts something in that page. See "Visitors Posts" in the left side. Is there anyone know how to modify the code to get "Visitors Posts" as well?

https://www.facebook.com/pg/BMWUSA/posts/?ref=page_internal

Thanks a lot!

lazanet commented 4 years ago

I guess you could hack /posts_to_page/ instead of /posts/ here, so that you can fetch visitors posts only, and then merge results later in your script.

ManuelBanza commented 4 years ago

Hi @lazanet thanks for the tip. Is it possible to add to the code the options to retrieve data form /posts/ and /posts_to_page/? I want to automatically to run the code to get posts and did not want to manually change the code like you said. Thank you very much for the help! Cheers

mxbernhard commented 3 years ago

Hi @lazanet I'm having the same issue. Any advice on how to go about this for a beginner? Do I just fork it and then install that as a local copy?