Page 1 of 1

Python script to get Peers information when downloading

Posted: Tue Feb 08, 2011 8:40 pm
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

Re: Python script to get Peers information when downloading

Posted: Wed Feb 09, 2011 7:57 am
by Cas
have you looked at peers_tab.py? that displays those values in the gtk ui.

Re: Python script to get Peers information when downloading

Posted: Wed Feb 09, 2011 9:52 pm
by mingzhe0908
Hi Cas,

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

Zack