Python script to get Peers information when downloading

Suggestions and discussion of future versions
Post Reply
mingzhe0908
New User
New User
Posts: 7
Joined: Fri Dec 31, 2010 5:47 pm

Python script to get Peers information when downloading

Post by mingzhe0908 »

Hi,

I want to write a python script that could show peers information such as country, id, ip when deluge is downloading. I find the module named deluge.core.torrent which has the function get_peers that can achieve it. But there are many parameters for the deluge.core.torrent, I don't have any idea of how to implement that?

Could anyone give me some information about how to use deluge.core.torrent?

Zack
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Python script to get Peers information when downloading

Post by Cas »

have you looked at peers_tab.py? that displays those values in the gtk ui.
mingzhe0908
New User
New User
Posts: 7
Joined: Fri Dec 31, 2010 5:47 pm

Re: Python script to get Peers information when downloading

Post by mingzhe0908 »

Hi Cas,

Thank you for your reply. I got it to work using client.core.get_torrent_status.

Zack
Post Reply