RintoMuhamad

Google Images Search

Oct 2nd, 2018
669
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.95 KB | None | 0 0
  1. ## You must used a python3.*
  2. ## Usage : python namefile.py or python3 namefile.py
  3. ## Con7ext
  4. import urllib.request
  5. import re
  6.  
  7. def scrap(args):
  8.   args = args.split()
  9.   url = 'https://www.google.co.id/search?ei=c_uHW87hBc_p9QO-6I7wBg&safe=strict&yv=3&tbm=isch&q=' + "+" .join(args)  +'&vet=10ahUKEwiO58Pk-pTdAhXPdH0KHT60A24QuT0IMSgB.c_uHW87hBc_p9QO-6I7wBg.i&ved=0ahUKEwiO58Pk-pTdAhXPdH0KHT60A24QuT0IMSgB&ijn=1&start=100&asearch=ichunk&async=_id:rg_s,_pms:s,_fmt:pc'
  10.   headers = {}
  11.   headers['User-Agent'] = "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.27 Safari/537.17"
  12.   req = urllib.request.Request(url, headers = headers)
  13.   resp = urllib.request.urlopen(req)
  14.   respData = resp.read()
  15.   paragraphs = re.findall(r'"ou":"(.*?)"',str(respData))
  16.   for eachP in paragraphs:
  17.     print(eachP)
  18.  
  19. print("--- Google Search Images ---\nCreated By : Con7ext")
  20. dorks = input("DORK : ")
  21.  
  22. for kntl in dorks:
  23.   scrap(dorks)
Add Comment
Please, Sign In to add comment