vaguiners

4Chan Batch Downloader - v1.3

Feb 2nd, 2013
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. echo off
  2. cls
  3. :set
  4. title 4Chan Batch Downloader
  5. :inicio
  6. set board=null
  7. set thread=null
  8. set argumentos=null
  9. :argumentos
  10. set s=0
  11. set e=0
  12. cls
  13. echo.
  14. set /p board="Board: "
  15. set /p thread="Thread: "
  16. set /p argumentos="Argumentos: "
  17. if "%board%"=="null" goto inicio
  18. if "%thread%"=="null" goto inicio
  19. if "%argumentos%"=="null" goto inicio
  20. :verificar_argumntos
  21. echo %argumentos%>argumentos.txt
  22. find /i "s" < argumentos.txt > $.txt
  23. if "%errorlevel%"=="0" set s=1
  24. del $.txt
  25. find /i "e" < argumentos.txt > $.txt
  26. if "%errorlevel%"=="0" set e=1
  27. del $.txt
  28. del argumentos.txt
  29. cls
  30. 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
  31. 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%
  32. if "%e%"=="1" exit
  33. goto set
  34.  
  35. ::4Chan Batch Downloader - ChangeLog
  36.  
  37. v1.3 - 11/05/2012
  38. : Retirado a variavel get
  39. : As outras variaveis foram adicionadas no link inicio
  40. : Removido o please enter
  41. : Adicionado o sisteminha de argumentos
  42.  
  43. v1.2 - 30/04/2012
  44. : Todo topico baixado, será adicionado no arquivo update.bat caso queira atualiza-lo.
  45.  
  46. v1.1 - 29/04/2012
  47. : Não é preciso mais copiar/deletar o wget.exe para a pasta onde será baixado as img
  48. : Removido as linhas para criar as pastas
  49. : Removido todos os cd
  50.  
  51. v1.0 - 29/04/2012
  52. : Finalizado as linhas mais importantes, com alguns ajustes.
Add Comment
Please, Sign In to add comment