shutdown57

INSTAGRAM PHOTO DOWNLOADER NEW 2018

Aug 30th, 2018
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.57 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. ## JavCode </ JavaCodeRulez >
  4. ## c0ded by :: shutdown57  
  5. ## copyright (c) 2018
  6.  
  7. merah="\033[1;31m"
  8. kunig="\033[1;33m"
  9. hijau="\033[1;32m"
  10. biru="\033[1;34m"
  11. cyan="\033[0;36m"
  12. hapud="\033[0m"
  13. putij="\033[37m"
  14.  
  15.  
  16. clear
  17. echo -e "                    $putij  ???  $hapud               "
  18. echo -e "                    $putij ????? $hapud               "
  19. echo -e "                    $putij  ???  $hapud               "
  20.    
  21. echo -e $putij"        ??????????$merah   ?????????????????  "$hapud
  22. echo -e $putij"        ??????????$merah   ?????????????????  "$hapud
  23. echo -e $putij"        ????      $merah   ????         ????  "$hapud
  24. echo -e $putij"        ????      $merah   ????         ????  "$hapud
  25. echo -e $putij"        ????      $merah   ????         ????  "$hapud
  26. echo -e $putij"        ????      $merah   ????         ????  "$hapud  
  27. echo -e $merah"                     ????               "$hapud
  28. echo -e $merah"                     ????               "$hapud
  29. echo -e $merah"        ????         ????         ????  "$hapud
  30. echo -e $merah"        ????         ????         ????  "$hapud
  31. echo -e $merah"        ????         ????         ????  "$hapud
  32. echo -e $merah"        ????         ????         ????  "$hapud
  33. echo -e $merah"        ??????????????????????????????  "
  34. echo -e $merah"        ??????????????????????????????  "
  35. echo ""
  36. echo -e $kunig"  [ JavCode (c) 2018 | coded by : shutdown57 ] "$hapud
  37. echo -e $hijau"  =[ Instagram photo downloader by username ]="$hapud
  38.  
  39. echo ""
  40. echo -n "  [ username ] ::"; read uname
  41.  
  42. echo ""
  43. echo -e $biru"[!]$hapud Checking username $uname ... "
  44. echo ""
  45. cek=$(curl -s "https://www.instagram.com/${uname}/")
  46. if [[ $cek =~ 'The link you followed may be broken, or the page may have been removed.' ]]; then
  47.     echo -e $merah"[-]$hapud [ $uname ] NOT FOUND!"
  48.     exit
  49. elif [[ ${cek} =~ 'is_private": true' ]]; then
  50.     echo -e $merah"[-]$hapud [ $uname ] PRIVATE ACCOUNT "
  51.     exit
  52. else
  53.     echo -e $hijau"[+]$hapud [ $uname ] FOUND !"
  54. fi
  55. echo ""
  56. getData=$(curl -s https://www.instagram.com/${uname}/ | grep -Po '(?<="display_url":")[^",]*')
  57. echo $getData >> list_link.temp3x
  58. echo -e $biru"[!]$hapud DOWNLOADING IN PROCCESS ...."
  59. sleep 1
  60. dir=ig_${uname}_jc
  61. mkdir -p $dir
  62.  
  63. num=1
  64. for dl in $(cat list_link.temp3x)
  65. do
  66.     echo -e  -n $biru"[!]$hapud $dl ... "
  67.     filename=$dir/${uname}_$((num++)).jpg
  68.     wget $dl -O $filename > /dev/null 2>&1
  69.     if [[ -f $filename ]]; then
  70.         echo -e $hijau"[OK]"$hapud
  71.     else
  72.         echo -e $merah"[ERROR]"$hapud
  73.     fi
  74. done
  75. echo -e "[$hijau File saved to $kunig $dir $hapud ]"
  76. echo -e "Thx."
  77. rm list_link.temp3x
Add Comment
Please, Sign In to add comment