for this i am using Elinks very similar to lynx txt browser
and Scroogle search engine
ELinks is an advanced and well-established feature-rich text mode web (HTTP/FTP/..) browser. ELinks can render both frames and tables, is highly customizable and can be extended via Lua or Guile scripts. It is very portable and runs on a variety of platforms. Check the about page for a more complete description.
ELinks is an Open Source project covered by the GNU General Public License. It originates from the Links project written by Mikulas Patocka, and it is currently maintained by Jonas Fonseca.
i have decided to use two methods one opens the txt browser the other saves the links as a normal in bash script format...
first download Elinks
my linux input is
sudo apt-get install elinks
once downloaded open a terminal and type: touch google.sh and touch scroogle.sh your two demo files
this creates the files follow next for both files below
at the terminal again type pico google.sh or what ever editor you use
then add this to the file am using Scroogle search engine already parsed
# Simple Scroogle shell script search # by Kenny GSO # date:31.12.2007 # # Script for quick Google search # This method will open the txt browser with parsed results # To use, type ./google.sh then your search terms elinks "http://www.scroogle.org/cgi-bin/nbbw.cgi?Gw=$*"
save it .... then to make it execute type in
chmod u+x google.sh
now depending on your flavour you can now run it... in my case like this am going to do a search for "index of root"
$ ./google.sh index of:root
Screenshot_index_of_root___Google_Search___ELinks___Shell___Konsole.png 94.22KB 145 downloads
another example below is of a bash script and save results to file: follow above and name it scroogle.sh
#!/bin/bash # scroogle.sh new saved touch script # Simple Scroogle shell script bash search # by Kenny GSO # date:31.12.2007 # first note am using elinks because am showing two methods for the demo # download `sudo apt-get install elinks` just an alternative to wget,curl etc # elink will grab the results and save them to result.txt..simple # note scroogle is a ready parsed google search engine # method two will use elinks browser similar to lynx txt browser elinks "http://www.scroogle.org/cgi-bin/nbbw.cgi?Gw=$*" > result.txt #END
out put for later analaysis is
Screenshot_result.txt____test____gedit.png 86.08KB 140 downloads
anyway just a bit of one line use from the shell to use ...if you put them in the /bin/bash folder then you dont have to change directory to run then.. etc
ps anyone got any google examples ?