[SOLVED] How to use Deluge modules

Suggestions and discussion of future versions
Post Reply
miscsubbin
New User
New User
Posts: 3
Joined: Tue Nov 13, 2012 9:45 pm

[SOLVED] How to use Deluge modules

Post 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.
Last edited by miscsubbin on Fri Nov 16, 2012 2:31 am, edited 1 time in total.
miscsubbin
New User
New User
Posts: 3
Joined: Tue Nov 13, 2012 9:45 pm

Re: How to use Deluge modules

Post 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.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: How to use Deluge modules

Post 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
miscsubbin
New User
New User
Posts: 3
Joined: Tue Nov 13, 2012 9:45 pm

Re: How to use Deluge modules

Post 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.
Post Reply