bittorrent

wget-like bittorrent client or library? [closed]

我的未来我决定 提交于 2019-12-04 09:34:49
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 8 years ago . Is there any bittorrent client or (Java|Python|Ruby|Perl) library that I can use like wget or curl? I would like to use simply as a step in a script,

Using the bittorrent protocol to distribute nightly and CI builds

ぐ巨炮叔叔 提交于 2019-12-04 05:25:57
This questions continues from what I learnt from my question yesterday titled using git to distribute nightly builds . In the answers to the above questions it was clear that git would not suit my needs and was encouraged to re-examine using BitTorrent. Short Version Need to distribute nightly builds to 70+ people each morning, would like to use git BitTorrent to load balance the transfer. Long Version NB. You can skip the below paragraph if you have read my previous question . Each morning we need to distribute our nightly build to the studio of 70+ people (artists, testers, programmers,

Bittorrent tracker request, format of info_hash

為{幸葍}努か 提交于 2019-12-04 03:05:47
问题 When I want to send an initial request to a tracker all references I've seen says it needs to be url-encoded. If I transform the SHA-1 hash I have of the info key into a hex string, why would I need to url-encode the hash? It only contains allowed characters. 回答1: The info_hash parameter is not a hex string. It's a pure binary string, so yes, you will have to URL-encode many of the bytes in it. (This tends to make it longer in the end than just using a hex-encoded string, but that's the

Ruby BitTorrent Library [closed]

眉间皱痕 提交于 2019-12-04 01:04:05
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 4 years ago . I am thinking of writing customized torrent client in ruby. I found the following libraries (which are pretty old as Matt pointed out bellow). However i would like to hear about any library that i might have missed and i would love to hear what the community have to say about the following

Loading Magnet LINK using Rasterbar libtorrent in Python

女生的网名这么多〃 提交于 2019-12-03 14:38:40
How would one load a Magnet link via rasterbar libtorrent python binding? import libtorrent as lt import time ses = lt.session() params = { 'save_path': '/home/downloads/'} link = "magnet:?xt=urn:btih:4MR6HU7SIHXAXQQFXFJTNLTYSREDR5EI&tr=http://tracker.vodo.net:6970/announce" handle = lt.add_magnet_uri(ses, link, params) print 'downloading metadata...' while (not handle.has_metadata()): time.sleep(1) print 'got metadata, starting torrent download...' while (handle.status().state != lt.torrent_status.seeding): print '%d %% done' % (handle.status().progress*100) time.sleep(1) 来源: https:/

Sending scrape request for getting torrent's seeds and peers

依然范特西╮ 提交于 2019-12-03 14:27:56
问题 I have been trying to create a torrent site but I'm stuck with the following. How to send torrent scrape request to get its seeder and leechers? I have a PHP class function that provides me announce list. public function getTrackers() { // Load tracker list $trackerlist = array(); if ( $this->torrent->get_value('announce-list') ) { $trackers = $this->torrent->get_value('announce-list')->get_plain(); while ( list( $key, $value ) = each( $trackers ) ) { if ( is_array( $value->get_plain() ) ) {

Decode Torrent Hash of Torrent tracker scrape?

落花浮王杯 提交于 2019-12-03 12:06:16
I am using BEncoded PHP Library to decode the bencoded response from a Bittorrent tracker. The response of Tracker is: d5:filesd20:¼€™rÄ2ÞÊþVA .]á^¦d8:completei285e10:downloadedi22911e10:incompletei9eeee after decoding it using the below code: require 'bencoded.php'; $be = new BEncoded; //Response saved in scrape.txt $data =file_get_contents('scrape.txt'); print_r($be->Decode($data)); the output is: Array ( [files] => Array ( [¼€™rÄ2ÞÊþVA .]á^¦] => Array ( [complete] => 285 [downloaded] => 22911 [incomplete] => 9 [isDct] => 1 ) [isDct] => 1 ) [isDct] => 1 ) My Problem my problem in the above

Looking for some good books/resources on understanding Bittorrent? [closed]

十年热恋 提交于 2019-12-03 09:05:23
Looking for some good books or technical resources for a detailed understanding of how Bittorrent works? It would probably involve books on Network programming, P2P programming, and other topics. The first place to look would probably be BitTorrent.org . It lists the standard specification as well as a lot of the extensions that have become de facto standards (most of which have been developed by µTorrent or Azereus). A thorough guide can also be found here , though it might not be as up-to-date as the first link. Keep in mind that most of the complexity with bittorrent relates to the client

Pure PHP torrent client? [closed]

与世无争的帅哥 提交于 2019-12-03 08:30:23
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. I'm a developer for a PHP CMS and I want to add a BitTorrent capability to it. The CMS already lets users upload files which other users can then download, comment, etc. but I think this could be improved (especially for low-bandwidth sites) if the CMS could offer these downloads via BitTorrent, either via .torrent metadata files or via magnet links, so that the upload burden is shared. It seems pretty straightforward,

Reading the fileset from a torrent

一曲冷凌霜 提交于 2019-12-03 07:26:41
问题 I want to (quickly) put a program/script together to read the fileset from a .torrent file. I want to then use that set to delete any files from a specific directory that do not belong to the torrent. Any recommendations on a handy library for reading this index from the .torrent file? Whilst I don't object to it, I don't want to be digging deep into the bittorrent spec and rolling a load of code from scratch for this simple purpose. I have no preference on language. 回答1: Effbot has your