Posts

Showing posts with the label browser

How to open a link on browser using ubuntu connected via sssh

How to open a link on browser using ubuntu connected via sssh I have an application which has to open a link on a browser in order to collect information from it [disclaimer: I don't want to use any headless browser]. When I run it on my local machine, everything works good; It opens the link on my default browser and does the work. now, I have deployed the application on my remote ubuntu machine (which I connect to via putty) but the xdg-open command won't work there. It has its problems like not having GUI server or echo $DISPLAY gives nothing (even tried the DISPLAY=:0 method). I want to be able to launch a browser at the end of the day and do my work. Then I was thinking it it is possible to open a browser on my local system via a command in my script on the server? What operating system are you running on the local system? Are you running an X server on the local system? Are you running putty with the option to forward X? – K...

Are there any command-line browsers which can execute javascript on the DOM and also execute javascript on that DOM (interactive console)?

Are there any command-line browsers which can execute javascript on the DOM and also execute javascript on that DOM (interactive console)? I'm looking for a command line browser or web browser command-line interface (headless/gui-less option) that can be run in a terminal (preferably linux/bash) which loads the DOM and received javascript, and then allows for console execution of javascript on the loaded DOM. The goal is to operate on the DOM through the console. I'm not looking for CLI-based page downloading, stand-alone js execution or load a js page from CLI. Links and Lynx both explicitly do not support javascript (at least according to those wikipedia pages). Are there any command-line-based or very-very-lightweight we browsers that I could use [preferably through linux/bash (Ubuntu/Mac OS X)] to operate on the browser DOM with javascript support using an interactive console or locally-sourced javascript code? Could you append a <script> ...