torrent-rw icon indicating copy to clipboard operation
torrent-rw copied to clipboard

UDP Tracker Scrape

Open eremini opened this issue 14 years ago • 17 comments

Hi,

This is more of a feature request. Could you please consider making it possible to scrape a UDP tracker for numbers, as a lot of trackers seem to be switching to UDP only model (openbittorrent being the biggest one). Since you now use CURL this should be no problem.

Cheers.

eremini avatar Jun 02 '11 06:06 eremini

Hello, Interesting point! Any idea where i could find the spec? I have no idea how to do that...

Adrien

2011/6/2 eremini < [email protected]>

Hi,

This is more of a feature request. Could you please consider making it possible to scrape a UDP tracker for numbers, as a lot of trackers seem to be switching to UDP only model (openbittorrent being the biggest one). Since you now use CURL this should be no problem.

Cheers.

Reply to this email directly or view it on GitHub: https://github.com/adriengibrat/torrent-rw/issues/3

adriengibrat avatar Jun 02 '11 11:06 adriengibrat

Hi,

Good to hear that you're interested. The oficial spec is located here: http://xbtt.sourceforge.net/udp_tracker_protocol.html

Let me know if you need any other info, help or testing.

Cheers.

eremini avatar Jun 02 '11 12:06 eremini

Thanks for the link, now i have to find some time to try implementing this

adriengibrat avatar Jun 02 '11 19:06 adriengibrat

Ok, i've just look deeper into some doc (the link you posted + http://www.rasterbar.com/products/libtorrent/udp_tracker_protocol.html) It seems I have to implement Connection, Scraping, Error & eventualy Authentification... using sockets. And Curl isn't any help here!

adriengibrat avatar Jun 03 '11 23:06 adriengibrat

Yeah you're right I forgot you got to use sockets in this case, so I guess it gets more complicated :/

Example of UDP communication from php.net

eremini avatar Jun 04 '11 07:06 eremini

very interesting code: https://github.com/johannes85/PHP-Torrent-Scraper

adriengibrat avatar Jun 05 '11 12:06 adriengibrat

Ah nice, it's not as complicated as I thought, perhaps you can reuse some of his code in your way

eremini avatar Jun 05 '11 12:06 eremini

The easyest way to do it would be to implement some kind of a plugin system so a external scraper class (like mine) could be used. Some Dependency Injection stuff or so. But then there is the question if you want to extend your compact class to a bigger system? A torrent framework which can handle all torrent related tasks would be very useful.

johannes85 avatar Jul 24 '11 22:07 johannes85

Sorry I still haven't done anything about that! If anyone want to submit a patch or a push, it's always welcome.

I'm not using torrent very often, I just did that class for fun... So no torrent Framework in sight.

adriengibrat avatar Nov 03 '11 19:11 adriengibrat

I am willing to make a donation even if someone is willing to implement UDP scraping into this code!

eremini avatar Apr 12 '12 12:04 eremini

As soon as i got some time i'm willing to implement UDP scraping + DHT methods using UDP transfert protocol. I'm open for any help as I got only few spare time (got a new job 2 weeks ago and a beautifull son 3 days ago!). Anyone wanting to help on this, please clone and start coding ;)

adriengibrat avatar Apr 12 '12 14:04 adriengibrat

I guess no progress on this yet adriengibrat . I'd honestly be willing to donate to someone if they got this done by now, I simple don't have the time or the skill anymore.

eremini avatar Dec 04 '12 11:12 eremini

Hey adriangibrat! Here is what I found for udp scraping. https://github.com/ZonD80/Kinokpk.com-releaser/blob/3.30/Kinokpk.com_releaser_v.3.30/upload/include/benc.php

It would be great if you could add udp to your class. Thanks

EdOzolins avatar Dec 09 '12 04:12 EdOzolins

Updates?

robinlahtinen avatar Jul 24 '16 02:07 robinlahtinen

PR always welcome. I dont have time/motivation to do it, but i will happily review & merge.

adriengibrat avatar Jul 25 '16 08:07 adriengibrat

I added this using the scrapeer class, its in the changes/demo branch. 8cb60d8

darkalchemy avatar Jul 03 '20 09:07 darkalchemy

I notice that at least some if not all of @darkalchemy 's commit has not made it to the master branch. Did this feature get implemented differently or is there something holding this up?

teamcoltra avatar Jun 05 '23 10:06 teamcoltra