kevinzg / facebook-scraper

Scrape Facebook public pages without an API key
MIT License
2.38k stars 627 forks source link

Unmanaged KeyError exception raised after searching for data-ft attribute in extractors.py #684

Open gabett opened 2 years ago

gabett commented 2 years ago

Hello,

since today, extractors.py raises an unmanaged KeyError exception in correspondance of line 1229:

data_ft_json = self.element.attrs['data-ft'].replace("\\\\", "\\")

The exception should have been caught by the KeyError handler placed below. However, the scraper still crashes.

I am working with EU Facebook.

neon-ninja commented 2 years ago

Can you please post the code you used that throws this exception? And also the full traceback.