LAPINPT

RSS SEARCH

Jul 28th, 2013
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.53 KB | None | 0 0
  1. @echo off
  2.  
  3. :: can be curl -k
  4. :: wget --no-check-certificate -O-
  5. SET CMD=curl
  6. SET URL="http://www.torrent.com/rss"
  7.  
  8. :: find lines whith title and Added:
  9. SET FLT1=sed -n "/title/p"
  10.  
  11. :: remove <\/*title>
  12. SET FLT2=sed "s/<\/*title>//g"
  13.  
  14. :: remove torrent
  15. SET FLT3=sed "s/SceneAccess//g"
  16.  
  17. :: remove empty lines
  18. SET FLT4=sed "/^$/d"
  19.  
  20. :: MASTER COMMAND
  21. %CMD% %URL% | %FLT1% | %FLT2% | %FLT3% | %FLT4% > SCCrss.txt
  22.  
  23. timeout 1 >NUL
  24.  
  25. :: PASS
  26. FOR /F "delims=" %%G IN (SCCrss.txt) DO (
  27. START https://kickass.to/usearch/%%G/
  28. )
Advertisement
Add Comment
Please, Sign In to add comment