PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Google Search With Bash & Curl On Linux

Go down

Google Search With Bash & Curl On Linux Empty Google Search With Bash & Curl On Linux

Post by jamied_uk 21st July 2016, 23:52

Google Search With Bash & Curl On Linux


Last edited by jamied_uk on 22nd July 2016, 01:12; edited 3 times in total
jamied_uk
jamied_uk
Admin

Posts : 2951
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Google Search With Bash & Curl On Linux Empty Re: Google Search With Bash & Curl On Linux

Post by jamied_uk 21st July 2016, 23:56

Code:
#/bin/bash
# Usage: ./find.sh "google.com"
myvar="$1"
search=$2
# https://encrypted.google.com/search?q=
# content=$(curl -L $myvar)
# echo $content > $myvar.html
# firefox $myvar.html

wget -O - "$myvar/#safe=off&q=/$2" > $myvar.html
firefox $myvar.html


Code:
#/bin/bash
# Usage: ./find.sh "google.com"
myvar="$@"
# https://encrypted.google.com/search?q=
# content=$(curl -L $myvar)
# echo $content > $myvar.html
# firefox $myvar.html

wget -O - $myvar
lynx -dump $myvar



Code:
#/bin/bash
# Usage: ./find.sh "google.com"
myvar="$@"
# https://encrypted.google.com/search?q=
content=$(wget $myvar -q -O -)
echo $content > $myvar.html
firefox $myvar.html
jamied_uk
jamied_uk
Admin

Posts : 2951
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum