Foros del Web » Programando para Internet » PHP »

Obtener información de torrent con PHP

Estas en el tema de Obtener información de torrent con PHP en el foro de PHP en Foros del Web. Hola! ¿Existe algún servicio, función, script, etc... que te permita obtener información de un fichero .torrent con PHP? Me refiero a info como: tamaño, nº ...
  #1 (permalink)  
Antiguo 24/11/2014, 09:58
Avatar de fbedia  
Fecha de Ingreso: julio-2010
Mensajes: 159
Antigüedad: 15 años, 1 mes
Puntos: 8
Obtener información de torrent con PHP

Hola!
¿Existe algún servicio, función, script, etc... que te permita obtener información de un fichero .torrent con PHP?

Me refiero a info como: tamaño, nº archivos, seeders, leechers, etc...

Saludos.
__________________
Follow me on twitter @franbedia
  #2 (permalink)  
Antiguo 27/11/2014, 06:53
Avatar de fbedia  
Fecha de Ingreso: julio-2010
Mensajes: 159
Antigüedad: 15 años, 1 mes
Puntos: 8
Respuesta: Obtener información de torrent con PHP

UP!!

¿Nada?

Me cuesta mucho encontrar información al respecto...

He encontrado la siguiente clase (https://github.com/adriengibrat/torrent-rw) que al menos algo hace :)
Puedo obtener parte de la información que quiero del .torrent, como es el "nombre", "hash" y el "tamaño" pero aun no se como sacar los "seeders" y "leechers"

Con un torrent que he probado, esta es la respuesta:

Cita:
private: no
annonce:
Notice: Array to string conversion in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\projects\AMOVIE\torrent-rw-master\Torrent.php on line 27
Array
name: La Cupula - Temporada 2 [HDTV][Cap.213][Español Castellano]
comment:
piece_length: 524288
size: 441.87 Mo
hash info: 791c402600a155f9a9695ab4e234b9387368827a
stats: array(5) { ["http://www.spanishtracker.com:2710/scrape"]=> array(3) { ["complete"]=> int(122) ["downloaded"]=> int(9390) ["incomplete"]=> int(46) } ["http://tracker.openbittorrent.com/scrape"]=> string(29) "Tracker request timeout (30s)" ["http://tracker.publicbt.com/scrape"]=> string(29) "Tracker request timeout (30s)" ["http://tracker.openbittorrent.com:80/"]=> string(29) "Tracker request timeout (30s)" ["http://tracker.publicbt.com:80/"]=> string(29) "Tracker request timeout (30s)" }
content: array(3) { ["La Cupula - Temporada 2 [HDTV][Cap.213][Español Castellano]\Importante leer !!!!!.txt"]=> int(301) ["La Cupula - Temporada 2 [HDTV][Cap.213][Español Castellano]\Lcup213 [www.newpct1.com].avi"]=> int(462457184) ["La Cupula - Temporada 2 [HDTV][Cap.213][Español Castellano]\www.DIVXATOPE.com.url"]=> int(877518) }
source: d8:announce43:http://www.spanishtracker.com:2710/a...80ee10:created by13:uTorrent/177013:creation datei1412767466e8:encoding5:UTF-84:infod5:filesld6:lengthi301e4:pathl25:Importante leer !!!!!.txteed6:lengthi462457184e4:pathl29:Lcup213 [http://www.newpct1.com].avieed6:leng...eee4:name60:La Cupula - Temporada 2 [HDTV][Cap.213][Español Castellano]12:piece lengthi524288e6:pieces17680:w« *F*7púï^ñ/ø\ÑkB<·:´ ïwEgSÅÑ1xUh‘ßµc×»VaOáÆ”ê¦dë“X¼µÜkœËÈvê¹ÿñ̳ fx1@ öE{«Ìjy8$çÓ"·ÙZYh0#3U‘s)rÏ6-ðJùqPʳ@/ê–)GkK$ñ¶¢ Í2ÅêkK„A#î¢w]¥+œ÷ÌŠÕ3°²IήŒÜ¼7bÍØ·Ï·Ê‘}oÕ6Òæ[0ô®ùö+œ=™~<¬‘ öQ†ÿŽ<Èôe`žr"†4^»‹Š q §ªº´|®?ð%Iò1@Jmâj/®Ï\å‹©<§‡æèÉÅÃ7«ß-^÷–«µg%8×ð[Ô#Né•+§ k—_ýÄ›ClùÙ÷wbR¨Ç½9 /*²bï?g››·7hO™ZI>ƒ¬Þ6Ÿ´‡TtÚVrõŽ7ØØJf¾HWEÍÍ·,ß ÈTN®ÿ5F¸·’™µßë¨ÿÓ€³FºäÑŒ»„èÒ^E“Ìá>uPDá*8&ìèˆõä~ NÈÎ^Døè Kw^Ÿ2Œ«XZÍHáE/\CrƏ„XÉ´e/3WùY€‡°ÒHÕs ‰”ë§Ws!!µÏÕ'’aLu0…΢Rö°TlÓÂïÓ1¯Ž>¢øÃÒQ–ñ?‰ª „ü…;F?‘o¤›¶úuKÙiûя ZêLÌq.@~ÆÐqûNòñ_ ¸h¯’K*íãKø=PáS‰.À1N‡âëtª8ÑÉe»Î©ÈÂ1gõÖü$ð9 /õ{´ý€o_ w–gxŽÏKƒj™ƒ|n_±B‰9˜ƒVnÜ5EtDBàº.T^(3“Áµ.ï–¼ 'eì%ªß(L}õ!½ipˆMº cðhz¿Ãƒ±µMáNUþØóJˆT«;ƒ•Ú) ä#"3=¯)»AwÀ®a¬RóÉQòê6?|ØuÂý' ,۝ôÞí² /þù驁Z8ÌÀ–¦ŽtŠÏNw1K7Ò=2ž‘²Ù?]ã¤&&GíØ[I0:½ª¬qÒûÄ_½ßxõá%§ÌŒº›ÄÖY{åaˆÃã(·I2y.GµµÐX ¯ÀäDÛì%œ>¯}Ju¡E¬ï¥á&<ÈÆã)SGå"›2ñR~rŠ´ÁŠ<‡þ ²{k¨ÆkïwÁ·J+&ÔÕ ÎK¿+L@9f™™ Z÷B¿ ve#I=T~}|ß$†fòÞyŠàôŸÕ>Àfø©ešš šI‹… (/œ)‚R¤_"Pßt&f‡zÈQÓSq)àžŸÅ5ý@Œø0ÒZ|JŸhz‚úü2ÊžyH õå#0›•wêéö4é ë¹€ŒS\ÔIb“ÊŒVž@À×yQX¢„ »œ+ËdÁgKîÚ,éqÑ¢OÒ·8Ìh6 çW=–¯èêÜ2péq_®yÞ/É=°@ƒ€’1(~ó…ÎÓdJNd‚ÇO×·…–"‹Æºs¶º™D§ýHxí¢ÎèÜ®.. .(recorto: de aqui hasta el final todo igual)....
__________________
Follow me on twitter @franbedia

Etiquetas: torrent
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 02:14.