Re:How to scrape and extract hyperlink networks with Beautif...
by rabuse on Monday November 15, 2021 @03:28PM
(#29232265)
This breaks with using standard web scraping methods (non-headless JS engines). Had to deal with this issue recently due to everything being a damn SPA now. Look into Selenium for running headless browsers if looking to scrape the modern web.
[ Parent
| on HN ]
Re:How to scrape and extract hyperlink networks with Beautif...
by bshipp on Monday November 15, 2021 @08:26PM
(#29235465)
While I certainly don't disagree that many sites need selenium these days, I find it's often possible to go straight to the AJAX/xHR source and get a pre-parsed JSON with all the data you're looking for.
Re:How to scrape and extract hyperlink networks with Beautif...
by kordlessagain on Monday November 15, 2021 @05:47PM
(#29233948)
Depending on the use case you might try imaging the page, then send the image to an ML model for full text before indexing. If you need links extracted, Selenium also supports parsing the assembled DOM: https://github.com/kordless/grub-2.0/tree/main/aperture
Re:How to scrape and extract hyperlink networks with Beautif...
by ricardo81 on Monday November 15, 2021 @03:42PM
(#29232439)
I used to use mozrepl back in the day before FF Quantum (or a version nearby) broke it, worked great- run the browser(s) via telnet. Could run as many browsers as memory would allow.