kevinzg / facebook-scraper

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

fix text for posts with photo #914

Closed Ianneee closed 2 years ago

Ianneee commented 2 years ago

Fix extraction of text from post with photos and long text (therefore with the more button) during get_posts returns an identifier to None. The resulting text will be null instead of the real content.

Ianneee commented 2 years ago

I encountered this issue when scraping this two posts: 10162524887011151 and 10162523660891151 using get_posts on Repubblica page. Use get_posts_by_url has no problem.