cloner.sh 703 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. red='\033[0;31m'
  3. green='\033[0;32m'
  4. yellow='\033[0;33m'
  5. blue='\033[0;34m'
  6. magenta='\033[0;35m'
  7. cyan='\033[0;36m'
  8. cat << "EOF"
  9. ____ _
  10. / ___| | ___ _ __ ___ _ __
  11. | | | |/ _ \| '_ \ / _ \ '__|
  12. | |___| | (_) | | | | __/ |
  13. \____|_|\___/|_| |_|\___|_|
  14. EOF
  15. echo""
  16. echo -e ${green}"Enter Website URL To Clone. Example: https://www.starbucks.com"${clear}
  17. echo ""
  18. read URL
  19. echo ""
  20. echo -e ${yellow}"Cloning $URL"${clear}
  21. /usr/bin/chromium-browser --no-sandbox 2>/dev/null
  22. runuser -u pi -- ./SingleFile/cli/single-file $URL --browser-executable-path=/usr/bin/chromium-browser Cloned_Pages/
  23. echo ""
  24. sleep 2
  25. echo -e ${yellow}"$URL Cloned Successfully"${clear}