forum.bittorrent.org

BitTorrent.org community

You are not logged in.

Announcement

Forums are closed. Use the new mailing list! https://groups.google.com/a/bittorrent.com/forum/#!forum/bt-developers

#1 2011-08-19 16:16:01

YIFY
Member

Help with tracker stats SCRAPE (BDecode/BEncode)

Hi I need some help.


I want to be able to retrieve the seed/peers numbers from a torrent using php on my site

I am currently trying to use the bdecode/bencode php scripts to see the details of torrents and to scrape for their peers/seeds statistics.

I ran into a bit of a problem, for some reason there are some torrents that the scrape result is: "Error with tracker response." even though when you enter in the scrape url in firefox manually it returns the encoded stats correctly.

Here is an example:

http://174.140.161.136/parse.php?filena … FY.torrent  <--ERROR (as seen at bottom of page)

while

http://174.140.161.136/parse.php?filena … 29.torrent  <--- SUCCESS (as seen at bottom of page)


if I manually scrape both those torrent hash;s then I get successful result..

http://inferno.demonoid.com:3402/scrape … 9%dd%6c%87
Iron Man 2 (2010)

http://inferno.demonoid.com:3410/scrape … 4%0d%d2%93
kung fu panda (2008)




So my question is, what do I need to alter in the php code to make it scrape the iron man 2 torrent for instants. (i found that about 20% of my torrent files give this error back... so i assume something is buggy with the php scraping code)

here is a link to the archived code I am using (php bencode bdecode scripts) http://174.140.161.136/code.zip 


any help will be greatly appreciated!

Offline

Board footer

Powered by FluxBB