moda20 / facebook-scraper

Scrape Facebook public pages without an API key
MIT License
60 stars 23 forks source link

Fail to get facebook "image text" post #11

Closed Cartasiane closed 6 months ago

Cartasiane commented 6 months ago

photo_2023-12-12_19-27-44 This kind of post return no text even if the text can be text copied on the mbasic version.

moda20 commented 6 months ago

@Cartasiane Can you give a public group example ?

Cartasiane commented 6 months ago
from facebook_scraper import get_posts

for post in get_posts('890901752414740', base_url="https://mbasic.facebook.com/groups", 
start_url="https://mbasic.facebook.com/groups/890901752414740", 
                      pages=50,
 cookies = "./cookies.txt"):

  print(post)
moda20 commented 6 months ago

@Cartasiane i have updated the repo to be able to get that type of text, but there is probably some change between cookies and regions, it seems mbasic is going away from using article elements. let's see for now.

moda20 commented 6 months ago

@Cartasiane i am closing this issue, since the bug seems to be fixed and we do get the text from the fancy post texts.