Giter VIP home page Giter VIP logo

ratio.py's Introduction

Ratio.py

Ratio.py is a small command line RatioMaster.Net like in Python3. It fakes upload stats of a torrent. Current emulators available are:

  • Transmission 2.92

Requirements:

  1. Python 3.x
  2. pip install -r requirements.txt

Usage:

foo@bar:~/ratio.py$ python ratio.py -c configuration.json 

Configuration example

{
   "torrent": "<Torrent file path>",
   "upload": "<Upload speed (kB/s)>"
}

ratio.py's People

Contributors

linekio avatar misterdaneel 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

Watchers

 avatar  avatar  avatar  avatar

ratio.py's Issues

Doesn't works when ratio is lower than 1.

I tried with yggtorrent.gg, with a blocked account :

[...]
----------- Received Tracker Response --------
{'failure reason': "[ERREUR] compte d\\xb'c3'\\xb'a9'sactiv\\xb'c3'\\xb'a9' ! "
                   "Un ratio de minimum 1 doit \\xb'c3'\\xb'aa'tre maintenu "
                   "pour pouvoir t\\xb'c3'\\xb'a9'l\\xb'c3'\\xb'a9'charger "
                   "vous \\xb'c3'\\xb'aa'tes seulement autoris\\xb'c3'\\xb'a9' "
                   "\\xb'c3'\\xb'a0' seeder"}
Traceback (most recent call last):
  File "ratio.py", line 33, in <module>
    to.tracker_process()
  File "/home/benoit/Bureau/custom/Ratio.py/code/process_torrent.py", line 99, in tracker_process
    self.tracker_start_request()
  File "/home/benoit/Bureau/custom/Ratio.py/code/process_torrent.py", line 67, in tracker_start_request
    self.tracker_response_parser(content)
  File "/home/benoit/Bureau/custom/Ratio.py/code/process_torrent.py", line 85, in tracker_response_parser
    self.interval = response['interval']
KeyError: 'interval'

The failure reason is:
"[ERREUR] compte désactivé ! Un ratio minimum de 1 doit être maintenu pour pouvoir télécharger, vous êtes seulement autorisé à seeder"
English translation:
"[ERROR] disabled account ! A minimum ratio of 1 must be maintained in order to download, you are only allowed to seed"

It seems like it need a seed request, not download request.
Note that it works with RatioMaster.Net

[Feature] Support Compact peers

Hello MisterDaneel 👋

This is a rather simple feature request , i will soon add a pull request for this.

Some trackers do not support clients without peer compact and will block all requests without it set to 1.

Since this is not actually used in the spoofing process but only to display the peers in the console , we should add an argument to enable compact.

Thank you for your time 👍
Have a nice day

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.