GithubHelp home page GithubHelp logo

mechazawa / redbetter-wm2 Goto Github PK

View Code? Open in Web Editor NEW
23.0 3.0 1.0 33 KB

Better.php crawler for Redacted that uses WhatManager

License: MIT License

Python 100.00%
seedbox transcoding crawler flac whatcd redacted whatmanager

redbetter-wm2's Introduction

RedBetter-WM2

Redbetter does not scrape the better.php HTML. This means that it's fine to use.

usage: ./redbetter-wm2 [-h] [-s SNATCHES] [-b BETTER] [-c COUNT] [-y YEAR]
                       [-t INCLUDE] [-T EXCLUDE] [-w WAIT] [--dry-run]
                       [--verbose] [--config CONFIG] [-W SECONDS] [-r N]

optional arguments:
  -h, --help            show this help message and exit
  -s SNATCHES, --snatches SNATCHES
                        minimum amount of snatches required before transcoding
                        (default: 5)
  -b BETTER, --better BETTER
                        better transcode search type (default: 3)
  -c COUNT, --count COUNT
                        maximum amount to queue (-1 for infinite) (default: 5)
  -y YEAR, --year YEAR  minimum release year (default: 2016)
  -t INCLUDE, --include INCLUDE
                        required comma separated tags (default: None)
  -T EXCLUDE, --exclude EXCLUDE
                        excluded comma separated tags (default: None)
  -w WAIT, --wait WAIT  wait X seconds between snatches (default: 3)
  --dry-run             don't snatch any torrents (default: False)
  --verbose, -v         verbosity level (up to -vv) (default: 0)
  --config CONFIG       the location of the configuration file (default:
                        /Users/shodan/.config/redbetter)
  -W SECONDS, --rate-limit-window SECONDS
                        size of rate limiter time window in seconds (default:
                        10)
  -r N, --rate-limit-max N
                        max amount of requests per time window (default: 5)

Example output

Config can be found at ~/.config/redbetter

$ ./redbetter-wm2.py --year 2010 -s 1
1/5 Snatching [96548] Alex Anwandter - Amiga (2016) | Se 11 Le 0 Sn 3
2/5 Snatching [271405] Reina del Cid - Let’s Begin (2011) | Se 2 Le 0 Sn 2
3/5 Snatching [325775] Aradia Ensemble - Theatre Music 2 (2016) | Se 7 Le 0 Sn 2
4/5 Snatching [250444] HyunA (현아) - A Talk (2014) | Se 3 Le 0 Sn 1
5/5 Snatching [356234] Laughing Buddha - - Sacred Technology (Nano Rec.) (2010) | Se 1 Le 0 Sn 1

Example config

[redacted]
username = 
password = 

[whatmanager]
username = 
password = 
url = https://seedbox.example.com/transcode/request

[pushjet]
; optional
secret = 

redbetter-wm2's People

Contributors

mechazawa 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

Watchers

 avatar  avatar  avatar

Forkers

dragonandy

redbetter-wm2's Issues

Crash after running for a long time

I keep getting this when I run this for a while:

Grabbing better list
Traceback (most recent call last):
File "./redbetter-wm2", line 147, in
main()
File "./redbetter-wm2", line 79, in main
torrents = api.get_better(args.better, tags_included)
File "/home/neuro/scripts/RedBetter-WM2/redapi.py", line 245, in get_bet
ter
return self.request('better', method='transcode', type=search_type, se
arch=' '.join(tags))
File "/home/neuro/scripts/RedBetter-WM2/redapi.py", line 139, in request
raise RequestException
redapi.RequestException

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.