pastebin

Paste Search Dynamic
email
  1. #!/usr/bin/env bash
  2.  
  3. function check() {
  4.         email=$1
  5.         valid=$(curl -s "https://api.twitter.com/i/users/email_available.json?email=$email" | grep -Po '(?<=valid":)[^,]*')
  6.        
  7.         if [[ $valid == "true" ]]; then
  8.                 echo " [Tersedia]"
  9.         else
  10.                 echo " [Tidak tersedia]"
  11.         fi
  12. }
  13.  
  14. for i in $(cat email.txt)
  15. do
  16.         check "$i"
  17. done
Parsed in 0.004 seconds