Guest User

Untitled

a guest
Jan 28th, 2018
250
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2.  
  3. id=айдипользователя
  4. start=100000000
  5. end=999999999
  6.  
  7. proxy=127.0.0.1:8888
  8.  
  9. for (( n=$start; n<$end; n++ )); do
  10.         if (curl --socks5-hostname $proxy -s https://vk.com/doc"$id"_"$n" | grep "<title>Error | VK</title>");
  11.                 then
  12.                         echo "https://vk.com/doc"$id"_"$n" contains error, skipping"
  13.                 else
  14.                         echo "https://vk.com/doc"$id"_"$n" doesn't contain error, saving to doc"$id"_"$n".html"
  15.                         curl --socks5-hostname $proxy -s https://vk.com/doc"$id"_"$n" -o doc"$id"_"$n".html
  16.         fi
  17. done
RAW Paste Data