vaguiners

4Chan Batch Downloader - v1.4

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