vaguiners

4Chan Batch Downloader - v1.6

Feb 2nd, 2013
100
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. cls
  12. echo.
  13. set /p board="Board: "
  14. set /p thread="Thread: "
  15. set /p argumentos="Argumentos: "
  16. if "%board%"=="u" goto up
  17. if "%board%"=="null" goto inicio
  18. if "%thread%"=="null" goto inicio
  19. :verificar_argumntos
  20. echo %argumentos%>argumentos.txt
  21. find /i "s" < argumentos.txt > $.txt
  22. if "%errorlevel%"=="0" set s=1
  23. del $.txt
  24. find /i "e" < argumentos.txt > $.txt
  25. if "%errorlevel%"=="0" set e=1
  26. del $.txt
  27. find /i "a" < argumentos.txt > $.txt
  28. if "%errorlevel%"=="0" set a=1
  29. del $.txt
  30. del argumentos.txt
  31. cls
  32. 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
  33. 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%
  34. if "%a%"=="1" start img\%board%-%thread%
  35. if "%e%"=="1" exit
  36. goto inicio
  37. :up
  38. start Update.bat
  39. exit
  40.  
  41. ::4Chan Batch Downloader - ChangeLog
  42.  
  43. v1.6 - 13/06/2012
  44. : Adicionado argumento para abrir a pasta ao terminar o download.
  45.  
  46. v1.5 - 04/05/2012
  47. : Adicionado a opção para abrir o update.bat
  48.  
  49. v1.4 - 11/05/2012
  50. : Title jogado no link inicio
  51. : Link set removido
  52. : goto set alterado para goto inicio
  53. : Removido o cls no inicio do script
  54. : Retirado o if para caso a variavel argumento não fosse setada
  55.  
  56. v1.3 - 11/05/2012
  57. : Retirado a variavel get
  58. : As outras variaveis foram adicionadas no link inicio
  59. : Removido o please enter
  60. : Adicionado o sisteminha de argumentos
  61.  
  62. v1.2 - 30/04/2012
  63. : Todo topico baixado, será adicionado no arquivo update.bat caso queira atualiza-lo.
  64.  
  65. v1.1 - 29/04/2012
  66. : Não é preciso mais copiar/deletar o wget.exe para a pasta onde será baixado as img
  67. : Removido as linhas para criar as pastas
  68. : Removido todos os cd
  69.  
  70. v1.0 - 29/04/2012
  71. : Finalizado as linhas mais importantes, com alguns ajustes.
Add Comment
Please, Sign In to add comment