www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - D web browser?

reply Joe bloow.edu <Joe bloow.edu> writes:
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).


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).
Sep 07 2023
next sibling parent Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= <aferust gmail.com> writes:
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).


 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
Sep 08 2023
prev sibling parent Sergey <kornburn yandex.ru> writes:
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).


 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 =)
Sep 08 2023