vaguiners

4Chan Batch Downloader - v1.8

Feb 2nd, 2013
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. echo off
  2. :4chandownloader_gui
  3. set var=%1
  4. if "%var%"=="update" goto gui_up
  5. if "%var%"=="delu" goto gui_del
  6. if "%var%"=="pasta" goto gui_pasta
  7. goto inicio
  8. :gui_pasta
  9. start img\
  10. exit
  11. :gui_del
  12. del Update.bat
  13. exit
  14. :gui_up
  15. start Update.bat
  16. exit
  17. :inicio
  18. title 4Chan Batch Downloader
  19. set board=null
  20. set thread=null
  21. set argumentos=null
  22. :argumentos
  23. set s=0
  24. set e=0
  25. set a=0
  26. set down=0
  27. set custom=0
  28. set fim=%4
  29. if "%fim%"=="4Chan" set down=1
  30. if "%fim%"=="BRChan" set down=2
  31. if "%down%"=="0" goto normal
  32. :custom_0
  33. set custom=1
  34. set board=%1
  35. set thread=%2
  36. set argumentos=%3
  37. goto verificar_argumntos
  38. :custom_1
  39. if "%down%"=="1" goto 4chan
  40. if "%down%"=="2" goto BRchan
  41. :4chan
  42. if "%s%"=="0" echo start wget -H --no-directories -D images.4chan.org -r -l 1 -U Mozilla -A jpeg,jpg,png,gif -nc --wait 3 --random-wait -P img\%board%-%thread% -e robots=off http://boards.4chan.org/%board%/res/%thread%>>Update.bat
  43. wget -H --no-directories -D images.4chan.org -r -l 1 -U Mozilla -A jpeg,jpg,png,gif -nc --wait 3 --random-wait -P img\%board%-%thread% -e robots=off http://boards.4chan.org/%board%/res/%thread%
  44. if "%a%"=="1" start img\%board%-%thread%
  45. exit
  46. :BRChan
  47. if "%s%"=="0" echo start wget -H --no-directories -D brchan.org -r -l 1 -U Mozilla -A jpeg,jpg,png,gif -nc --wait 3 --random-wait -P img\%board%-%thread% -e robots=off http://www.brchan.org/%board%/res/%thread%.html>>Update.bat
  48. wget -H --no-directories -D brchan.org -r -l 1 -U Mozilla -A jpeg,jpg,png,gif -nc --wait 3 --random-wait -P img\%board%-%thread% -e robots=off http://www.brchan.org/%board%/res/%thread%.html
  49. if "%a%"=="1" start img\%board%-%thread%
  50. exit
  51. :normal
  52. cls
  53. echo.
  54. set /p board="Board: "
  55. set /p thread="Thread: "
  56. set /p argumentos="Argumentos: "
  57. if "%board%"=="u" goto up
  58. if "%board%"=="null" goto inicio
  59. if "%thread%"=="null" goto inicio
  60. :verificar_argumntos
  61. echo %argumentos%>argumentos.txt
  62. find /i "s" < argumentos.txt > $.txt
  63. if "%errorlevel%"=="0" set s=1
  64. del $.txt
  65. find /i "e" < argumentos.txt > $.txt
  66. if "%errorlevel%"=="0" set e=1
  67. del $.txt
  68. find /i "a" < argumentos.txt > $.txt
  69. if "%errorlevel%"=="0" set a=1
  70. del $.txt
  71. del argumentos.txt
  72. cls
  73. if "%custom%"=="1" goto custom_1
  74. if "%s%"=="0" echo start wget -H --no-directories -D images.4chan.org -r -l 1 -U Mozilla -A jpeg,jpg,png,gif -nc --wait 3 --random-wait -P img\%board%-%thread% -e robots=off http://boards.4chan.org/%board%/res/%thread%>>Update.bat
  75. wget -H --no-directories -D images.4chan.org -r -l 1 -U Mozilla -A jpeg,jpg,png,gif -nc --wait 3 --random-wait -P img\%board%-%thread% -e robots=off http://boards.4chan.org/%board%/res/%thread%
  76. if "%a%"=="1" start img\%board%-%thread%
  77. if "%e%"=="1" exit
  78. goto inicio
  79. :up
  80. start Update.bat
  81. exit
  82.  
  83. ::4Chan Batch Downloader - ChangeLog
  84.  
  85. 1.8 - 30/06/2012
  86. : Novas adaptações com a interface grafica
  87.  
  88. 1.7 - 29/06/2012
  89. : Adaptado com a interface grafica.
  90.  
  91. v1.6 - 13/06/2012
  92. : Adicionado argumento para abrir a pasta ao terminar o download.
  93.  
  94. v1.5 - 04/05/2012
  95. : Adicionado a opção para abrir o update.bat
  96.  
  97. v1.4 - 11/05/2012
  98. : Title jogado no link inicio
  99. : Link set removido
  100. : goto set alterado para goto inicio
  101. : Removido o cls no inicio do script
  102. : Retirado o if para caso a variavel argumento não fosse setada
  103.  
  104. v1.3 - 11/05/2012
  105. : Retirado a variavel get
  106. : As outras variaveis foram adicionadas no link inicio
  107. : Removido o please enter
  108. : Adicionado o sisteminha de argumentos
  109.  
  110. v1.2 - 30/04/2012
  111. : Todo topico baixado, será adicionado no arquivo update.bat caso queira atualiza-lo.
  112.  
  113. v1.1 - 29/04/2012
  114. : Não é preciso mais copiar/deletar o wget.exe para a pasta onde será baixado as img
  115. : Removido as linhas para criar as pastas
  116. : Removido todos os cd
  117.  
  118. v1.0 - 29/04/2012
  119. : Finalizado as linhas mais importantes, com alguns ajustes.
Add Comment
Please, Sign In to add comment