Home

Keebler/Blog

« Battlestar Galactica Season 2 is coming!
Rico LiveGrid: No more next/prev! »

Torrent Live Stats v0.2

About:
Torrent Live Stats is a hosted script to which you can upload a BitTorrent file or point to an existing bittorrent, and from which an image is generated with the contents and size of the torrent and live statistics on the number of seeds and leeches. It is meant to be used to post a torrent’s statistics on a Web page or in a forum. 

Download it here

Screenshot:

Freshmeat Project 

 

 

Related Posts

  • WWDC Keynote Liveblog Stats
  • WhyYouShould Syndication (and why you should not trust squirrels)
  • New Bittorrent Search Engine
  • Shift Edit Live Blogging Alpha
  • Infinite Scrolling on Live Image Search

This entry was posted on Thursday, June 30th, 2005 at 9:43 pm and is filed under My Releases, Torrent Live Stats. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

26 Responses to “Torrent Live Stats v0.2”

  1. steve says:
    July 18, 2005 at 11:43 pm

    Hi,

    This is great, thanks very much.

    Is is possible to also display the total number of completed downloads in the image? ie the number of times the files within the torrent download.

    Steve

  2. Jonathan says:
    July 19, 2005 at 8:01 pm

    Hey, you’re welcome Steve :-)

    Since the stats are grabbed by hitting the tracker, as long as trackers don’t return that data, neither can I unfortunatly. However, I know at least one group was building images like this into their tracker so you could upload your torrent, then put a hosted image onto your site/forum post. I think it was the old tracker that ran Torrentz. Let me know if you find anything ;-)

  3. steve says:
    August 15, 2005 at 3:59 am

    another question for you :) trying to add a image that i get from a torrent to a forum within image tags. I get a different type of url then is shown on your demo site. if i post the same torrent on your demo iste i get this url, which doesn’t result in an impage (times out) …/torrent6ec8eea2ffbe0045f353fbd7fb6e01a6b05a1cb5.upload.torrent.FFFFFF.000000.PNG On my site i get ; …/torrent.php?torrent=bb04d24ac79b691ea90ec5c39ba55be1e53960a8.upload.torrent&textcolor=FFFFFF&bgcolor=000000 This image doesn’t dynamically update within a forum, but is fine within a normal html page… Any ideas? ie why do we get different output urls?

  4. Jonathan says:
    August 15, 2005 at 10:24 pm

    To setup forum-friendly URLs like that, just place a .htaccess file in the directory with the script with the following contents:

    RewriteEngine On
    RewriteRule ^torrent(.+)\.([a-zA-Z0-9]+)\.([a-zA-Z0-9]+)\.png$ /torrent.php?torrent=$1&textcolor=$2&bgcolor=$3&format=PNG

  5. grog says:
    August 21, 2005 at 3:34 am

    hey im not sure what sort of stats are returned by the tracker but if it could show the ’swarm speed’ that would be awesome. I know that azureus shows this but i have a funny feeling it does this by connecting to all the peers and querying the, any way if that was possible it would be very cool

  6. Jonathan says:
    August 21, 2005 at 12:49 pm

    That’s a great idea grog. This post seems to imply that swarm speed is calculated by the tracker itself but I can’t find any documentation. I’ll check out the bencoded replies from common trackers and see if I can find anything. If I do, I’ll release a v0.3…finally :D

  7. d3vlabs says:
    March 5, 2006 at 3:26 am

    Warning: unlink(/tmp/): Is a directory in /home/rusername/public_html/btstats/torrent_inc.php on line 146

    tried setting to /tmp/ in root to 777
    and tried changing /tmp in configs to another dir

    still nada.

    any ideas?

  8. Jonathan says:
    March 5, 2006 at 4:11 pm

    Are you sure you’re passing in a torrent url for it to fetch? It sounds like it’s getting to that line with $torrentfile being null so line 146 is trying to delete /tmp (which is not good ;-) ). What’s the full URL of your call to the script?

    Thanks for checking it out!

  9. d3vlabs says:
    March 5, 2006 at 7:18 pm

    well i tried

    // linking to a remote torrent hosted thepiratebay
    // //using the linux torrent in example
    trying this url:
    http://torrent.unix-ag.uni-kl.de/torrents/KNOPPIX_V4.0.2DVD-2005-09-23-DE.torrent
    // downloading a torrent and the uploading it

    everytime this is what I get:

    still

    Warning: unlink(/tmp/): Is a directory in /home/username/public_html/media/btstats/torrent_inc.php on line 146

    :: tmp in root is chmod to 777
    :: scrapes is created inside btstats folder and chmoded to 777
    :: maketorrent/torrent.php have the changes described in README applied to them as well as tried both chmod 755 and 777. its 755 right now

    You can see the demo here: http://www.rapgodfathers.com/media/btstats/

    Thanks for your time. Just asking for advice. For right now I will try on a diff server.

  10. Jonathan says:
    March 5, 2006 at 7:22 pm

    I tried with http://www.rapgodfathers.com/media/btstats/torrent.php?torrent=http://torrent.unix-ag.uni-kl.de/torrents/KNOPPIX_V4.0.2DVD-2005-09-23-DE.torrent and it looks like it is working…except you don’t have the GD PHP library installed (”Call to undefined function: imagecreatetruecolor()”). You’ll need to get that library installed on your server and it should probably work for you. Good luck!

  11. d3vlabs says:
    March 5, 2006 at 9:55 pm

    got it working on another server with GD. Thank you for this.

    Last question:
    Should the information about a torrent be saved in in the sql db so that you can always call upon the same torrent info again by using torrent.php ? Or i have to use a format of
    http://www.rapgodfathers.com/media/btstats/torrent.php?torrent=http://torrent.unix-ag.uni-kl.de/torrents/KNOPPIX_V4.0.2DVD-2005-09-23-DE.torrent
    everytine to post the torrent info?

    Thanks once again

  12. Keebler/Blog » Blog Archive » WhyYouShould Syndication (and why you should not trust squirrels) says:
    March 4, 2007 at 2:56 pm

    [...] Similar to my Torrent Live Stats script that people have been using to show Bittorrent statistics for an individual file via a dynamically generated image, I whipped up this script to pull the most recent reasons for a WYS thread into a JPG. [...]

  13. mark says:
    June 26, 2007 at 9:09 pm

    is there any chance of someone sending me the file or re uploading it as the download link dont work no more thanks

  14. ChennaiStyle says:
    July 1, 2007 at 7:52 pm

    Hello,

    I tried to download this Code, but I cant, link is missing.
    Can u please update, It will be useful to display the torrent stats in my site ..

  15. mark says:
    July 22, 2007 at 2:04 am

    please please can someone email me this mini_mark443@hotmail.com

  16. Ta Duy Duc says:
    August 15, 2007 at 6:12 pm

    Pls reupload the files… I can’t download it…

  17. Jonathan says:
    August 16, 2007 at 5:51 pm

    Oops, I had the files on a domain that a squatter stole. You can download it here now. My bad ;)

  18. kiim says:
    January 30, 2008 at 7:49 pm

    Hey Jonathan,

    Ive tried out your script, but whatever torrentfile I try, be local or remote I get the status *DOWN*. Any idea?

    K

  19. Jonathan says:
    January 30, 2008 at 10:18 pm

    @kiim: Sorry you’re having problems with the script. Maybe it’s having problems downloding the torrent files and saving them locally? Make sure your permissions are correct (they should all be in the README). Lemme know if you’re still having problems and I’ll try to remember how this thing works :)

  20. kiim says:
    January 31, 2008 at 4:21 pm

    Thanks for swift response :)

    Ive set up everything as described in the README, but get the *DOWN* message even with uploaded files aswell as regular links. You can see the test here: http://www.superlasten.com/dev/bt/maketorrent.php

    K

  21. AdamSnake says:
    March 17, 2008 at 11:06 am

    Hi all!

    I’ve tested the script on my own PC used as a web server. Every requirements are OK, but when I try to generate the picture, it shows me an error message: Warning: unlink(/tmp/722c25c71b5a59bfa93091db2fec7ba1761682d0.torrent) [function.unlink]: No such file or directory in C:\WLMP\HTDOCS\torrent-live\torrent_inc.php on line 154

    why it’s happening? plz, help :(

  22. sig files says:
    May 26, 2008 at 4:01 pm

    [...] torrent file and have it’s live stats show in a nice little image that you can add as a forum sig.http://www.keebler.net/blog/2005/06/30/torrent-live-stats-v02/Signature FileIf you want, Spruce can automatically attach a standard signature file to the end of [...]

  23. Ahmed says:
    June 9, 2008 at 10:40 am

    hi..
    Hey can u help me understand how to get live stats.. i need to know the indepth logic behind it. i will realy appreciate your help.

    Regards

  24. Qu3 says:
    October 14, 2008 at 8:34 am

    Jonathan, thanks a lot for the script.
    I’ve configured it on a test environment but I get the *DOWN* message with both uploaded and linked files.

    Could you help with this?

    Screenshot here: http://img519.imageshack.us/img519/6587/torrentstatswa4.jpg

  25. ross says:
    May 7, 2009 at 1:32 pm

    hi there, has anyone sorted the *down* message as thats what i am getting at the mo, any help would be great.

    thanks

  26. 0rgis says:
    May 21, 2009 at 10:56 am

    get these errors

    Warning: fopen(./scrapes/376.scrape) [function.fopen]: failed to open stream: No such file or directory in /mounted-storage/home48c/sub001/sc30915-HWAQ/www/scrape/torrent_inc.php on line 106

    Warning: fclose(): supplied argument is not a valid stream resource in /mounted-storage/www/scrape/torrent_inc.php on line 108

    Warning: Cannot modify header information – headers already sent by (output started at /mounted-storage/www/scrape/torrent_inc.php:106) in /mounted-storage/home48c/sub001/sc30915-HWAQ/www/scrape/torrent.php on line 110

    Warning: Cannot modify header information – headers already sent by (output started at /mounted-storage/www/scrape/torrent_inc.php:106) in /mounted-storage/home48c/sub001/sc30915-HWAQ/www/scrape/torrent.php on line 111

    please help ta

Leave a Reply

Click here to cancel reply.

  • Blog Home

  • Tags

    90210 alessandra ambrosio animals asp.net audrina patridge battlestar galactica bikini bunny bush C# canada canada election ctv ctvglobemedia development Election Entertainment/Celebrity facebook Gordon Ramsay gorilla gossip girl hayden panettiere iphone last.fm liveblog liveblogging mesh08 muchmusic Music obama palin rachel bilson scribblelive shenae grimes subway telemarketers the hills the killers the office toronto ttc toronto tv us election video yeah yeah yeahs

    WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.

  • Recent Posts

    • Trying to convince @idiotbante…
    • I wonder if the CTV “Save Loca…
    • Just finished dinner which I m…
    • I shouldn’t get as excited abo…
    • Stormtroopers’ 9/11 http://tin…
  • Categories

    • Election
    • Entertainment/Celebrity
    • Fake News
    • Featured
    • Funny
    • Keebler/Show
    • Music
    • My Releases
    • On-the-Road
    • RedDot
    • Reviews
    • Science/Technology
    • ScribbleLive
    • Security
    • Software
    • Torrent Live Stats
    • Tweets
    • Uncategorized
    • Web Development
  • Blogroll

    • Kitten-Monkey’s Cell
    • :: kattekylling ::
    • Adam Finley
    • blog-j
    • fuzzz.gaulin.ca
    • Idiot Banter
    • mad.greyarea.com
    • ob.blog
    • PollyPrissyPants
    • RedDot CMS Users Google Group
    • ScribbleLive Official Blog
  • My Sites

    • Flickr2Facebook
    • RedDot CMS
    • ScribbleLive
    • Where are my f(acebook)ing friends?
    • WhyYouShould