On Friday, 8 September 2023 at 06:42:13 UTC, Joe wrote:
Is there a D library that lets one access the web through a
browser like interface? I need to access some URLS as if I was
browsing them(it needs to run scripts in the page).
E.g., C# has WebBrowser that lets one programmatically control
a browser. I'd like something similar. It does not need to be
graphical but it does need to be able to handle javascript and
forms and allow programmatic interaction and ideally quite
light(else it almost defeats the purpose).
Those are some works that I remember.
https://github.com/skoppe/spasm an example code:
https://github.com/skoppe/spasm/tree/master/examples/fetch
https://github.com/adamdruppe/arsd and its docs:
http://arsd-official.dpldocs.info/arsd.html#web-scraper
https://github.com/adamdruppe/webassembly/blob/master/tetris.d
Probably, more can be found at
https://code.dlang.org/?sort=updated&limit=20&category=library.web