Project

torckapi

0.01
No commit activity in last 3 years
No release in over 3 years
torrent tracker api
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

Torckapi — torrent tracker querying API

Gem Version Dependencies Status Code Climate

Description

Torckapi is a querying interface to torrent trackers.

Synopsis

tracker = Torckapi.tracker("udp://generic.url:80/announce")
# => #<Torckapi::Tracker::UDP:0x007fb5941f6ef8
#      @url=#<URI::Generic:0x007fb5941f7038 URL:udp://generic.url:80/announce>,
#      @options={:timeout=>15, :tries=>3}>

Queries

tracker.announce("0123456789ABCDEF0123456789ABCDEF01234567")
# => #<Torckapi::Response::Announce:0x007fa1bc0f11c0
#      @info_hash="0123456789ABCDEF0123456789ABCDEF01234567",
#      @leechers=1,
#      @seeders=1,
#      @peers=[["127.0.0.1", 54078], ["127.0.0.2", 43666]]>

tracker.scrape(["0123456789ABCDEF0123456789ABCDEF01234567", "123456789ABCDEF0123456789ABCDEF012345678"])
# => #<Torckapi::Response::Scrape:0x007fa1bc0fe320
#      @data={"0123456789ABCDEF0123456789ABCDEF01234567"=>{:seeders=>3, :completed=>0, :leechers=>13},
#             "123456789ABCDEF0123456789ABCDEF012345678"=>{:seeders=>4, :completed=>10, :leechers=>8}}>

TODO

Add tests.

Document everything.