[Python] Scrape posts and comments from a public facebook page

Discussão em 'Python' iniciado por Stack, Maio 3, 2025.

  1. Stack

    Stack Membro Participativo

    It looks like sometime last year, Facebook started severely restricting its Graph API. I've tried different ways to scrape a public facebook page but always get the error: HTTP Error 400: Bad Request

    Has anyone successfully scraped a facebook page in recent months since the changes? Just to clarify: the page owner would be okay with me scraping the information.

    Some things I've tried:

    https://github.com/LorenzoMonti/facebook_page_group_comments

    https://nocodewebscraping.com/facebook-scraper/

    https://www.sourcecon.com/how-to-scrape-data-from-facebook-pages/

    https://onlinezhuanjia.com/python-facebook-page-scraper-tool/

    I've seen some advice online that says you can create a facebook app and then have it approved within a week by fb. Is this possible for something like scraping posts and comments from a public facebook page? I went ahead and created an "app" on fb but don't really understand how to add code to scrape a page & how the approval process works.

    Any help or workarounds would be greatly appreciated! Thank you. :)

    Continue reading...

Compartilhe esta Página