Sha256: fef4f58d7ebd427e7a7e1d1821703273f0b634b1aaa095cae0c7c046d2df5c81
Contents?: true
Size: 646 Bytes
Versions: 1
Compression:
Stored size: 646 Bytes
Contents
module DownloadTV class KAT < LinkGrabber def initialize super('https://katcr.co/new/search-torrents.php?search="%s"&sort=seeders&order=desc') end def get_links(s) # Format the url search = @url % [s] data = @agent.get(search).links.select {|i| i.href.include? "torrents-details.php?" } raise NoTorrentsError if data == [] # Remove duplicates data.keep_if { |i| i.text != "" } names = data.collect &:text links = [] data.each do |res| page = res.click links << page.search('a.kaGiantButton[title="Magnet link"]').attribute("href").text end names.zip(links) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
download_tv-2.1.0 | lib/download_tv/grabbers/kat.rb |