Thread overview
D web browser?
Sep 08, 2023
Joe
Sep 08, 2023
Ferhat Kurtulmuş
Sep 08, 2023
Sergey
September 08, 2023

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).

September 08, 2023

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

September 08, 2023

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).

Seems something similar to Selenium tool (I've used it with Python in the past).

There is outdated package https://code.dlang.org/packages/selenium-d
Probably will be good to make it great alive again =)