kevinzg / facebook-scraper

Scrape Facebook public pages without an API key
MIT License
2.29k stars 616 forks source link

CLI - Not working with "some" pages (fine with others) #205

Open tstanbur opened 3 years ago

tstanbur commented 3 years ago

Hi,

I've implemented this today and get "Couldn't get any posts" returned for some public pages even though they have some very recent ones. Other pages are fine.

I am using the CLI.

Here are two example of public pages that returns no posts.

https://www.facebook.com/Bedworthwarriors/ https://www.facebook.com/PeacehavenAthletic/

e.g. $ facebook-scraper --filename page_posts.csv --pages 3 Bedworthwarriors

but this works fine

$ facebook-scraper --filename page_posts.csv --pages 3 bbcnews

Can you help please?

Thanks!

TheMulti0 commented 3 years ago

I see this issue too.

neon-ninja commented 3 years ago

Both Bedworthwarriors and PeacehavenAthletic require you to be logged in to see posts. Try feed in cookies as per https://github.com/kevinzg/facebook-scraper/issues/28#issuecomment-793066983