facebook-scraper icon indicating copy to clipboard operation
facebook-scraper copied to clipboard

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

Open gabett opened this issue 2 years ago • 1 comments

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.

gabett avatar Feb 22 '22 11:02 gabett

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

neon-ninja avatar Mar 29 '22 20:03 neon-ninja