RintoMuhamad

GIS ( GOOGLE IMAGE SEARCH )

Aug 30th, 2018
868
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.46 KB | None | 0 0
  1. <?php
  2. /**
  3. BUAT SETTING PAGE di IJN={PAGE1,2,3,4 BEBAS} blm ku tambah ke automatis mls njingan >:(
  4. */
  5. function getImg($kiword){
  6.   $ch1 = curl_init();
  7.   curl_setopt($ch1, CURLOPT_URL, "https://www.google.co.id/search?ei=c_uHW87hBc_p9QO-6I7wBg&safe=strict&yv=3&tbm=isch&q=$kiword&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");
  8.   curl_setopt($ch1, CURLOPT_RETURNTRANSFER, true);
  9.   curl_setopt($ch1, CURLOPT_SSL_VERIFYPEER, 0);
  10.   curl_setopt($ch1, CURLOPT_SSL_VERIFYHOST, 0);
  11.   curl_setopt($ch1, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
  12.   $ex = curl_exec($ch1);
  13.   curl_close($ch1);
  14.   return($ex);
  15. }
  16. echo "Powered By Con7ext
  17.        .___                                      
  18.   ____ |   | _____ _____     ____   ____   ______
  19.  / ___\|   |/     \\__  \   / ___\_/ __ \ /  ___/
  20. / /_/  >   |  Y Y  \/ __ \_/ /_/  >  ___/ \___ \
  21. \___  /|___|__|_|  (____  /\___  / \___  >____  >
  22. /_____/           \/     \//_____/      \/     \/ \n";
  23. echo "SET KEYWORD: ";
  24. $kiwd = trim(fgets(STDIN));
  25. $kiWi = getImg($kiwd);
  26. $list = array();
  27. preg_match_all("/\"ou\":\"(.*?)\"/", $kiWi, $uRiMg);
  28. foreach($uRiMg[1] as $uRI){
  29.   if(!in_array($uRI, $list)){
  30.     echo $uRI."\n";
  31. }else{
  32.     echo "NO RESULT FOUND...";
  33.     sleep(3);
  34.     echo "WAITING...";
  35.     sleep(3);
  36.     echo "EXITING...";
  37.     exit();
  38.   }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment