jedihermit

wget menu 2.0

Sep 28th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. color 90
  3. cls
  4.  
  5. :menu
  6.  
  7. ECHO.
  8. ECHO ...............................................
  9. ECHO What type of files do you want to download?
  10. ECHO ...............................................
  11. ECHO.
  12. ECHO 1 - pictures
  13. ECHO 2 - music
  14. ECHO 3 - video
  15. ECHO 4 - ebooks
  16. ECHO 5 - software
  17. ECHO 6 - custom
  18. ECHO 7 - exit
  19. ECHO.
  20.  
  21. SET /P M=What do you want?
  22. IF %M%==1 GOTO pictures
  23. IF %M%==2 GOTO music
  24. IF %M%==3 GOTO video
  25. IF %M%==4 GOTO ebooks
  26. IF %M%==5 GOTO software
  27. IF %M%==6 GOTO custom
  28. IF %M%==7 GOTO EOF
  29. GOTO menu
  30.  
  31. :pictures
  32. set dirpre=pictures
  33. set accept=jpg,gif,png,jpeg
  34. GOTO AskSite
  35.  
  36. :music
  37. set dirpre=music
  38. set accept=mp3,wav,ac3,ogg,flac,wma,m4a
  39. GOTO AskSite
  40.  
  41. :video
  42. set dirPre=video
  43. set accept=mkv,mp4,avi,mov,mpg,wmv
  44. GOTO AskSite
  45.  
  46. :ebooks
  47. set dirpre=ebooks
  48. set accept=pdf,mobi,cbz,cbr,epub,pdf,rtf,doc,docx
  49. GOTO AskSite
  50.  
  51. :software
  52. set dirpre=software
  53. set accept=exe,iso,tar,rar,zip,apk
  54. GOTO AskSite
  55.  
  56. :custom
  57. set dirpre=custom
  58. SET /P accept= Enter a custom search with wildcards
  59. GOTO AskSite
  60.  
  61. :AskSite
  62. echo.
  63. echo "Enter a website to rip"
  64. echo.
  65. set /p website= Enter website:
  66. cls
  67. wget --directory-prefix=%dirpre% --no-directories --recursive --level 1 --no-clobber --accept %accept% %website%
  68. GOTO MENU
  69.  
  70. :EOF
Add Comment
Please, Sign In to add comment