3 ms·
This would be impossible to maintain. Facebook regularly changes the layout of pages, and mangles the DOM to defeat adblocking, and also likely take anti scrapi
by vermilingua 7y ago
This would be impossible to maintain. Facebook regularly changes the layout of pages, and mangles the DOM to defeat adblocking, and also likely take anti scraping measures.
- amelius 7y agoYes, but are you familiar with the tool Youtube-DL, which is open-source, runs on Linux, and allows users to download content from youtube? This tool is very useful, and is constantly being updated after changes on YouTube that break the tool. If the tool doesn't work, you simply invoke it with the "-U" flag and it updates itself. So far, this tool has not failed me. I think a similar approach could be taken by this scraping library, though I admit it would be a lot of work to maintain it.
- kodablah 7y agoThere are other approaches like accessibility APIs and text selection based on positioning and visibility.