magnetico icon indicating copy to clipboard operation
magnetico copied to clipboard

Peer / seeder counts?

Open dessalines opened this issue 7 years ago • 13 comments

I noticed other dht indexers have this, is this available here? When there are 20 torrents of the same thing, I need to know which one is most seeded.

dessalines avatar Apr 10 '17 05:04 dessalines

We need to implement BEP 33 for that. I will definitely look into it, thanks for your feedback!

boramalper avatar Apr 10 '17 11:04 boramalper

Much, much needed :D

scriptzteam avatar Apr 26 '17 17:04 scriptzteam

Good idea

Maverik44 avatar Jun 15 '17 04:06 Maverik44

DHT scrapes are too expensive, tracker scrapes should be preferred for bulk scraping.

mweinelt avatar May 06 '18 12:05 mweinelt

DHT scrapes are too expensive, tracker scrapes should be preferred for bulk scraping.

You do know that magnetico's goal is to function without trackers?

kescherCode avatar Dec 30 '18 11:12 kescherCode

Using the internet is also too slow, sending hard drives per express courier should be preferred for fast data collection.

jangrewe avatar Dec 30 '18 11:12 jangrewe

Hard drives are too slow, would rather send solid state drives.

kescherCode avatar Dec 30 '18 12:12 kescherCode

In all seriousness, BEP33 could allow this data to be collected with existing queries, and responses stored in the DB.

anacrolix avatar Mar 24 '20 03:03 anacrolix

@boramalper it looks like there's columns in the database, and constants in the API to support seeder and leecher counts and querying, but I don't see any code actually using it anywhere. It appears that querying on these causes a panic, and that none of the DHT exploration code fills in the database values. Could you confirm that's the case? Are there any PRs/existing attempts to do this, or was it scoped out in the boilerplate, but nobody got around to it? Cheers

anacrolix avatar Mar 24 '20 04:03 anacrolix

I've implemented BEP33 upstream, and started trying to integrate it with magneticod. As far as I can tell, magneticod inserts complete torrents into the database only when it has the metadata, it has no provision for updating or merging peer/seed counts over time. It looks like some fields where intended for this like updated_on, but were never wired up. I assume it would require some redesign or an additional service within magneticod to continuously maintain an up-to-date value for n_seeders and n_leechers.

anacrolix avatar Mar 29 '20 05:03 anacrolix

It's not pretty, but it works as a proof of concept: https://github.com/boramalper/magnetico/compare/master...anacrolix:popularity?expand=1.

anacrolix avatar Mar 30 '20 03:03 anacrolix

Any updates on seed/peer counter :)

kodxana avatar Feb 27 '21 23:02 kodxana

I built a library that does this a few years ago that I'm using in torrents-csv: https://github.com/dessalines/torrent-tracker-health

dessalines avatar Feb 27 '21 23:02 dessalines