kevinzg / facebook-scraper

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

Cannot get more than 20 posts ! #70

Closed widedM closed 3 years ago

widedM commented 4 years ago

Hi, im trying to get posts from some Facebook groups using this library but it didn't gave me more than 20 posts i don't know why ! for example:

 for post in get_posts(group=1024840684234688, pages=10):
    print(post)

=> The output: 20 posts only and usually even that i putted pages=1 or pages=10

kevinzg commented 4 years ago

It seems your group is private, have you tried with using the login option?

widedM commented 4 years ago

It doesn't work with private groups. All the groups are public. I tried but it doesn't work !

On Mon, 15 Jun 2020, 03:27 Kevin Zúñiga, notifications@github.com wrote:

It seems your group is private, have you tried with using the login option?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kevinzg/facebook-scraper/issues/70#issuecomment-643868718, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMMFN4SE5KBFQ5X3NTMMRBDRWWBJHANCNFSM4N2O54CA .

neon-ninja commented 3 years ago
print(get_group_info("1024840684234688"))

returns

{'id': '1024840684234688', 'name': 'Vente Pc Portable / Gamer / Fix', 'type': 'Private group', 'members': 51032}

This group is private. You would need to pass cookies to access it.