Page 1 of 1

[SOLVED] How to use Deluge modules

Posted: Tue Nov 13, 2012 9:52 pm
by miscsubbin
I want to develop a program that interacts with the Deluge WebUI. Is there an API for python that I can use? I've been looking around the documentation, but I don't really understand how to import the needed modules. Maybe (probably) I'm understanding something wrong? Sorry, I've never really done something like this before.

Re: How to use Deluge modules

Posted: Thu Nov 15, 2012 2:40 am
by miscsubbin
OK, so I'm going to try to clarify what I want a little bit in order to get some help on this, if this is in the wrong section, or I need to add more info, please let me know.

So I'm trying to write a python program, and some of it's functionality involves using the WebApi. I think this: http://deluge-torrent.org/docs/master/m ... n_api.html is the section I really need to use. How do I set this up? I'm fairly new to python and Deluge, but I have other programming experience. I basically want to be able to scrape data off the WebUI and be able to add and remove torrents.

Thanks.

Re: How to use Deluge modules

Posted: Thu Nov 15, 2012 12:54 pm
by Cas
If you are writing a python program you should just use the Deluge API: http://dev.deluge-torrent.org/wiki/Deve ... 3/UIClient

Re: How to use Deluge modules

Posted: Fri Nov 16, 2012 2:31 am
by miscsubbin
Ok, I got it. Thanks a lot. Is there a method that returns a torrent from an id? I'll keep looking around for it, I assume that it has to exist. Not really a big deal, I'm still getting a feel for how the whole thing works.