Giter Club home page Giter Club logo

python-bittorrent's People

Contributors

josephsalisbury avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-bittorrent's Issues

Documentation??

Hi, I want to use this library, But I literally have no idea how it works. How does this library create torrent files?

Bencode

In bencode.py, decode_str() you have first condition like:
try:
colon = data.find(":")
So, if you have a string like: "4test", you have to be failed.

Cant connect

raise URLError('unknown url type: %s' % type)
urllib2.URLError: urlopen error unknown url type: udp

getting this error when trying to download torrent

Fails with some .torrent files

bencode.decode(data) fails with data from some .torrent files like:

test2.zip

Traceback (most recent call last):
File "H:\Programmation\Deluge\test_decode.py", line 18, in
dic = bencode.decode(data)
File "python-bittorrent/bencode.py", line 286, in decode
return decode_functionsben_type(data)
File "python-bittorrent/bencode.py", line 252, in decode_dict
terms = inflate(data)
File "python-bittorrent/bencode.py", line 85, in inflate
xs = inflate(exp[strlength:])
File "python-bittorrent/bencode.py", line 85, in inflate
xs = inflate(exp[strlength:])
File "python-bittorrent/bencode.py", line 85, in inflate
xs = inflate(exp[strlength:])
File "python-bittorrent/bencode.py", line 85, in inflate
xs = inflate(exp[strlength:])
File "python-bittorrent/bencode.py", line 85, in inflate
xs = inflate(exp[strlength:])
File "python-bittorrent/bencode.py", line 85, in inflate
xs = inflate(exp[strlength:])
File "python-bittorrent/bencode.py", line 85, in inflate
xs = inflate(exp[strlength:])
File "python-bittorrent/bencode.py", line 77, in inflate
xs = inflate(exp[end + 1:])
File "python-bittorrent/bencode.py", line 85, in inflate
xs = inflate(exp[strlength:])
File "python-bittorrent/bencode.py", line 91, in inflate
end = walk(exp) # Find the end of the data type
File "python-bittorrent/bencode.py", line 49, in walk
return walk(exp, index + strlength)
File "python-bittorrent/bencode.py", line 55, in walk
return walk(exp, index + endsub)
File "python-bittorrent/bencode.py", line 49, in walk
return walk(exp, index + strlength)
File "python-bittorrent/bencode.py", line 49, in walk
return walk(exp, index + strlength)
File "python-bittorrent/bencode.py", line 49, in walk
return walk(exp, index + strlength)
File "python-bittorrent/bencode.py", line 43, in walk
return walk(exp, endchar + 1)
File "python-bittorrent/bencode.py", line 49, in walk
return walk(exp, index + strlength)
File "python-bittorrent/bencode.py", line 49, in walk
return walk(exp, index + strlength)
File "python-bittorrent/bencode.py", line 40, in walk
if exp[index] == "i":
IndexError: string index out of range

Does it support actual downloading?

Hi,

I can see the handshake code, but couldn't find routines to download pieces. Could you confirm this code doesn't support actually downloading data over BitTorrent?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.