Author Topic: Download a file via bittorrent in python  (Read 1333 times)

0 Members and 1 Guest are viewing this topic.

Offline Ragehottie

  • Knight
  • **
  • Posts: 313
  • Cookies: -9
  • Hack to learn, not learn to hack.
    • View Profile
Download a file via bittorrent in python
« on: March 24, 2014, 07:55:14 pm »
I've been moseying around a project idea and to make it happen I want to download some files via bittorrent. And since python is my loc I want to do it in python. I have been thinking and looking around for the best way to do this, and have found a couple ideas. Been looking at libtorrent and the python wrapper for it, but I think I might just use the C library instead(If I go that route). I've looked on github for torrent clients in python and haven't found a good one. So I've got my ideas, but I still can't find one I like, maybe you guys could help me out? I need it to be extremely customizable, not just like pass an external program a link and it downloads it for me.

So, what do you guys think about torrenting in python? Whats the easiest/best way?
Blog: rexmckinnon.tumblr.com

Offline vezzy

  • Royal Highness
  • ****
  • Posts: 771
  • Cookies: 172
    • View Profile
Re: Download a file via bittorrent in python
« Reply #1 on: March 24, 2014, 08:20:26 pm »
Deluge is written in Python.
Quote from: Dippy hippy
Just brushing though. I will be semi active mainly came to find a HQ botnet, like THOR or just any p2p botnet

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: Download a file via bittorrent in python
« Reply #2 on: March 24, 2014, 09:06:17 pm »
I second Deluge, that's what I use.
>>>import this
-----------------------------

Offline Ragehottie

  • Knight
  • **
  • Posts: 313
  • Cookies: -9
  • Hack to learn, not learn to hack.
    • View Profile
Re: Download a file via bittorrent in python
« Reply #3 on: March 24, 2014, 11:08:45 pm »
Yea I've seen Deluge it wasn't reeeeeeaaaally what I was wanting  :P
Specifically the python wrapper they use for libtorrent
« Last Edit: March 24, 2014, 11:16:10 pm by Ragehottie »
Blog: rexmckinnon.tumblr.com

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: Download a file via bittorrent in python
« Reply #4 on: March 24, 2014, 11:18:19 pm »
Yea I've seen Deluge it wasn't reeeeeeaaaally what I was wanting  :P
Specifically the python wrapper they use for libtorrent

It has source code you can look at to figure out how it works, and also is able to support plug-ins, so it is/could be a starting point to doing it yourself. Figure out how they do it and make it into something of your own. No better resource than an already open platform for you to learn from.
>>>import this
-----------------------------

Offline Ragehottie

  • Knight
  • **
  • Posts: 313
  • Cookies: -9
  • Hack to learn, not learn to hack.
    • View Profile
Re: Download a file via bittorrent in python
« Reply #5 on: March 26, 2014, 05:21:34 pm »
It has source code you can look at to figure out how it works, and also is able to support plug-ins, so it is/could be a starting point to doing it yourself. Figure out how they do it and make it into something of your own. No better resource than an already open platform for you to learn from.

Since I thought there was going to be further discussion I didn't reply but :P

They use a python wrapper they write themselves, and I would rather use the one made by libtorrent. It might be similiar, but I would prefer to learn it via the docs of the one I want than looking at something similiar's source. I guess that's the best way since no one has said differently
Blog: rexmckinnon.tumblr.com

Offline Ragehottie

  • Knight
  • **
  • Posts: 313
  • Cookies: -9
  • Hack to learn, not learn to hack.
    • View Profile
Re: Download a file via bittorrent in python
« Reply #6 on: March 26, 2014, 06:02:34 pm »
https://github.com/abhijeeth/AutonomoTorrent have fun. It's pure python, has most of it's functionality sectioned off into their own modules, and is open source. If this isn't what you want, you'll have to actually explain what it is you want so that we can be of use to you
\

That's exactly what I wanted before turning to libtorrent. I think I saw that project earlier I guess I didn't check it out. Thank you
Blog: rexmckinnon.tumblr.com