Google Search With Bash & Curl On Linux

View previous topic View next topic Go down

Google Search With Bash & Curl On Linux

Post by jamied_uk on 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
avatar
jamied_uk
Admin

Posts : 2280
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: Google Search With Bash & Curl On Linux

Post by jamied_uk on 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
avatar
jamied_uk
Admin

Posts : 2280
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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