#curl https://www.google.com/accounts/ClientLogin \
#-A "mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0" \
#--data-urlencode Email=tablespill@gmail.com --data-urlencode Passwd=wtfstop1 \
#-d accountType=GOOGLE \
#-d source=Google-cURL-Example \
#-d service=trendspro > google_login
wget "https://accounts.google.com/ServiceLoginAuth" \
-O google1 \
--user-agent="mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0" \
--keep-session-cookies \
--save-cookies=/LEMONSTAND/google.txt \
--no-check-certificate
GALX=$(grep "GALX" /LEMONSTAND/google.txt | cut -f 7)
dsh=$(/LEMONSTAND/get_byxpath3.py "//input" "//input[@type='hidden'][@name='dsh'][@value]/@value" /LEMONSTAND/google1 | head -n 1)
wget "https://accounts.google.com/ServiceLoginAuth?pstMsg=1&dnConn=https%3A%2F%2Faccounts.youtube.com&continue=http%3A%2F%2Fwww.google.com%2Finsights%2Fsearch%2F%23q%3Dcomputer%26cmpt%3Dq&service=trendspro&nui=1&dsh=$dsh&hl=en-US&timeStmp=&secTok=&GALX=$GALX&Email=tablespill%40gmail.com&Passwd=wtfstop1&rmShown=1&signIn=Sign+in&asts=" \
-O google2 \
--user-agent="mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0" \
--referer="https://accounts.google.com/serviceLogin?hl=en-US&nui=1&service=trendspro&continue=http%3A%2F%2Fwww.google.com%2Finsights%2Fsearch%2F%23q%3Dcomputer%26cmpt%3Dq" \
--keep-session-cookies \
--save-cookies=/LEMONSTAND/google.txt \
--load-cookies=/LEMONSTAND/google.txt \
--no-check-certificate
wget "https://accounts.google.com/CheckCookie?continue=http%3A%2F%2Fwww.google.com%2Finsights%2Fsearch%2F%23q%3Dcomputer%26cmpt%3Dq&hl=en-US&service=trendspro&chtml=LoginDoneHtml&dnConn=https%3A%2F%2Faccounts.youtube.com&pstMsg=1" \
-O google3 \
--user-agent="mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0" \
--referer="https://accounts.google.com/serviceLogin?hl=en-US&nui=1&service=trendspro&continue=http%3A%2F%2Fwww.google.com%2Finsights%2Fsearch%2F%23q%3Dcomputer%26cmpt%3Dq" \
--keep-session-cookies \
--load-cookies=/LEMONSTAND/google.txt \
--save-cookies=/LEMONSTAND/google.txt \
--no-check-certificate
#wget "https://accounts.youtube.com/accounts/SetSID?ssdc=1&sidt=ALWU2cu6A0LFrqqjR20y1b0MxtOXI7Iu9T1b2bx%2FVIOQBDpDg5Kn%2BSv40r0y5pEMlZ3Uek3IoSrcuyH%2FFwtxR5%2F7fY1sAogQW0AEzE68NTgKLLmkytKui%2BLxA7ChHRtWkv5pbE7dUuwrqHS%2FQkoovFrTpcg8Jr7x0XsMwAHKETszApV%2BwXdHSa%2F6uiRu14vKuIpjLP%2BMhVtzGdQBC9ewkhwppk4e%2Fa%2F804Oh8vDJWcXlqtqxcNTw4OknCVfrSh2t9aNGeX5caPWYW2Ecb6mPaMSuDGaM7xwcHQ%3D%3D&continue=http%3A%2F%2Fwww.google.com%2Finsights%2Fsearch%2F%23q%3Dcomputer%26cmpt%3Dq" \
#-O google4 \
#--user-agent="mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0" \
#--referer="https://accounts.google.com/serviceLogin?hl=en-US&nui=1&service=trendspro&continue=http%3A%2F%2Fwww.google.com%2Finsights%2Fsearch%2F%23q%3Dcomputer%26cmpt%3Dq" \
#--keep-session-cookies \
#--load-cookies=/LEMONSTAND/google.txt \
#--save-cookies=/LEMONSTAND/google.txt \
#--no-check-certificate
wget "http://www.google.com/insights/search/#q=computer&cmpt=q" \
-O google5 \
--user-agent="mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0" \
--referer="https://accounts.google.com/serviceLogin?hl=en-US&nui=1&service=trendspro&continue=http%3A%2F%2Fwww.google.com%2Finsights%2Fsearch%2F%23q%3Dcomputer%26cmpt%3Dq" \
--keep-session-cookies \
--load-cookies=/LEMONSTAND/google.txt \
--save-cookies=/LEMONSTAND/google.txt \
--no-check-certificate
wget "http://www.google.com/insights/search/overviewReport?q=computer&cmpt=q&content=1&export=1" \
-O google6 \
--user-agent="mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0" \
--referer="http://www.google.com/insights/search" \
--keep-session-cookies \
--load-cookies=/LEMONSTAND/google.txt \
--save-cookies=/LEMONSTAND/google.txt \
--no-check-certificate