Hacker News new | past | comments | ask | show | jobs | submit login

I 'inspect-element'd some random pane on Facebook: https://imgur.com/a/qecS7gJ

That's intentional, they do it both to stop adblockers from working and to fight scrapers. Last I checked, the mangling algorithm switched up fairly regularly but I don't use Facebook much these days so it might have changed.

It might be easier to screen capture the page and extract text via OCR than deal with a constantly shifting DOM, since at least the former (screenshots) will remain more likely static.

Ahh, OK. I remember reading about that vaguely. Coincidence I chose FB. I know Google's DOM is equally unintelligible.

Applications are open for YC Winter 2022

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact