Click to See Complete Forum and Search --> : know of a command line controled web browser ?
nephish
11-21-2005, 04:28 PM
Hey there, i am looking for a web browser that i can manipulate from the command line.
i know that with mozilla i have about six or seven commands that i read about on the mozilla website, like
mozilla - remote "openurl(www.somethingorother.com)"
and an already open mozilla browser will go there.
really cool. but i need one that can do more stuff, like download a page and maybe even send an email (right now it can just open the email program window)
so, i guess it doesn't matter what browser i use ( konqueror, firefox, galeon, whatever) as long as it can be controlled from a command line.
anybody know of any?
thanks
cybertron
11-21-2005, 05:11 PM
lynx/links/links2? I don't know about sending e-mail, but they can be told to download a page. They're completely terminal-based though. Also, wget can download sites for you too. That's probably the best way to do it since that's what wget is designed for.
nephish
11-21-2005, 05:47 PM
are either lynx, links or links2 javascript enabled?
thanks
chrism01
11-22-2005, 01:48 AM
I think you may want to look at Perl with such modules as WWW::Mechanize if you want to get into serious website access/manipulation from the cmd line.
nephish
11-22-2005, 09:07 AM
hey cool, i will check it out
thanks
knute
11-22-2005, 12:02 PM
There is also w3m (http://w3m.sourceforge.net/), and
netrik (http://netrik.sourceforge.net/) .
I'm partial to w3m myself. :)
I just tried out netrik, and it's still rather new, but is suppose to eventully support javascript.
As I've only spent a couple of minutes using netrik, I can't say one way or the other about it.
HTH
psych-major
11-22-2005, 12:04 PM
mutt is a good cli email program.
Pierre Lambion
11-22-2005, 12:24 PM
To download a page from a script or command line, the obvious candidate is wget.
To email from teh command line, you could use one of the following:
nullmailer (http://untroubled.org/nullmailer/)
http://msmtp.sourceforge.net/
http://esmtp.sourceforge.net/
If you really need a scripted full graphical browser, your best bet is KDE's konqueror: as any kde software if can be 'driven' through dcop calls and scripts.
P.
nephish
11-22-2005, 04:44 PM
well thats cool, especially about konqueror,
know where the docs are to run that ?
thanks
Pierre Lambion
11-22-2005, 05:19 PM
You can use kdcop to browse dcop object and there properties, but here are two starting points:
http://www.linux-magazine.com/issue/36/KDE_Scripting_DCOP.pdf
http://www-128.ibm.com/developerworks/linux/library/l-dcop/?ca=dgr-kdeml01KDEDCOP
P.
nephish
11-22-2005, 05:25 PM
cool, thanks very much.
appreciate it a lot