vaguiners

4Chan Batch Downloader - v1.7

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