Advertisement
stevennathaniel

Mencoba Membaca File RSS.XML Menggunakan egrep

Nov 1st, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.04 KB | None | 0 0
  1. Pertama nyobain menggunakan perintah: egrep -o 'http[^ ]*.torrent' rss.xml . maka menghasilkan:
  2.  
  3. http://extratorrent
  4. http://extratorrent.cc/images/logo.gif</url><link>http://extratorrent
  5. http://extratorrent.cc/torrent
  6. http://extratorrent.cc/download/4501925/Fairy+Tail+S2+-+82+%28257%29+%5B480p%5D%5BEng+Sub%5D%5BiORcHiD%5D.torrent
  7. http://extratorrent.cc/torrent
  8. http://extratorrent.cc/torrent
  9. http://extratorrent.cc/download/4502267/Fairy+Tail+S2+-+82+%28257%29+%5B720p%5D%5BEng+Sub%5D%5BiORcHiD%5D.torrent
  10. http://extratorrent.cc/torrent
  11. http://extratorrent.cc/torrent
  12. http://extratorrent.cc/download/4502166/%5BARRG%5D+Fairy+Tail+S2+-+82+%28257%29+%5B480p%5D_lucifer22.torrent
  13. http://extratorrent.cc/torrent
  14. http://extratorrent.cc/torrent
  15. http://extratorrent.cc/download/4501921/%5BAnimeRG%5D+Noragami+Aragoto+-+5+%5B720p%5D+%5BScavvyKiD%5D.torrent
  16. http://extratorrent.cc/torrent
  17. http://extratorrent.cc/torrent
  18. http://extratorrent.cc/download/4502704/Hentai+Ouji+to+Warawanai+Neko+%28Sub%29+1080p+BD+x264+-+SushiKushi.torrent
  19. http://extratorrent.cc/torrent
  20. http://extratorrent.cc/torrent
  21. http://extratorrent.cc/download/4502220/%5BARRG%5D+Fairy+Tail+%282014%29+-+S2+-+82+%5B257%5D%5B720p%5D_lucifer22.torrent
  22. http://extratorrent.cc/torrent
  23. http://extratorrent.cc/torrent
  24. http://extratorrent.cc/download/4503330/%5BAnimeRG%5D+Owari+no+Seraph+16+%28720p+MP4%29+Nagoya+Kessen+Hen+04+%5BKoTuWa%5D.torrent
  25. http://extratorrent.cc/torrent
  26. http://extratorrent
  27. http://extratorrent
  28. http://extratorrent.cc/torrent
  29. http://extratorrent.cc/download/4502898/%5BAnimeRG%5D+Fairy+Tail+S2+-+82+%28257%29+%5B720p%5D%5BFuni-DL%5D%5BJRR%5D.mp4.torrent
  30. http://extratorrent.cc/torrent
  31. http://extratorrent.cc/torrent
  32. http://extratorrent.cc/download/4502900/%5BAnimeRG%5D+Fairy+Tail+S2+-+82+%28257%29+%5B1080p%5D%5BFuni-DL%5D%5BJRR%5D.mp4.torrent
  33. http://extratorrent.cc/torrent
  34. http://extratorrent.cc/torrent
  35. http://extratorrent.cc/download/4503493/%5BAnimeRG%5D+Owari+no+Seraph+16+%281080p+MP4%29+Nagoya+Kessen+Hen+04+%5BKoTuWa%5D.torrent
  36. http://extratorrent.cc/torrent
  37. http://extratorrent
  38. http://extratorrent
  39.  
  40.  
  41. hasilnya masih terlalu banyak, maka coba di persempit pencariannya sehingga nanti nya hasil pencariannya bisa di download menggunakan Aria2c . Misalnya kita mau mencari baris http yg spesifik seperti ini:
  42.  
  43. http://extratorrent.cc/download/4502704/Hentai+Ouji+to+Warawanai+Neko+%28Sub%29+1080p+BD+x264+-+SushiKushi.torrent
  44.  
  45. maka kita coba pakai perintah:
  46.  
  47. egrep -o 'http[^ ]*SushiKushi.torrent' rss.xml
  48.  
  49. maka ketika script Bash dijalankan akan menghasilkan:
  50.  
  51. http://extratorrent.cc/download/4502704/Hentai+Ouji+to+Warawanai+Neko+%28Sub%29+1080p+BD+x264+-+SushiKushi.torrent
  52.  
  53. semua hal diatas dibuat dalam wujud file script Bash.
  54.  
  55. jadi keuntungannya, cukup menjalankan 1 file script saja, maka seluruh fungsi yg dibutuhkan akan dijalankan. inilah otomatisasi yg ingin dicapai.
  56.  
  57. karena diatas sudah ada link .torrent nya . maka selanjutnya tinggal mendownload file .torrent itu . setelah itu menyuruh aria2c mendownload file sebenarnya dengan memanfaatkan file .torrent itu.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement