RE: Broadcatching
"Bauer, Georg" <[email protected]> Thu, 18 Mar 2004 11:37:31 +0100
| Newsgroups | gmane.comp.python.pyds.user |
|---|---|
| Message-ID | <[email protected]> |
Hi! > I want to automate BitTorrent downloads with the PyDS aggregator. If I understand it correctly, the BitTorrent integration is just standard RSS enclosures with BitTorrent URLs. So actually Python has everything ready to support it - only a pythonic BitTorrent URL handler is missing. PyDS already supports enclosures: the EnclosureTool encapsulates most of the support. The EnclosureTool._enclosureFetch gives the enclosures URL to the DownstreamTool.download method. That one just hands that URL over to a UrlOpener that's actually urllib.UrlOpener or urllib.FancyUrlOpener. Actually it's special subclasses on those, so you might be able to hook your code into those classes. The only thing that's needed is either a python implementation of a BitTorrent client, or some commandline tool that you can call via popen2. Only problem is, it must be portable over all platforms PyDS is running on ... bye, Georg