Skip to main content

A python3 wrapper for RARBG.to

Project description

rarbgapi

Build Status

This is a python3 wrapper for RARBG.to.

The api object will automatically fetch/refresh the token and take care rate control (1 request/2 seconds)

Quickstart

List new torrents

>>> import rarbgapi
>>> client = rarbgapi.RarbgAPI()
>>> for torrent in client.list():
...     print(torrent)
... 

The download link can be found in

>>> torrent.download

Get more torrents, the limit option supports 25, 50, 100 only.

>>> client.list(limit=100):

Search torrents with specific keyword or imdb, tvdb and themoviedb index via search_imdb, search_tvdb and search_themoviedb

>>> client.search(search_string="walking dead")

or specific category

>>> client.search(search_string="walking dead", category=RarbgAPI.CATEGORY_TV_EPISODES)

options

Here are options to configure rarbgapi client

Name Description
retries Retry how many times once error happen
>>> import rarbgapi
>>> options = {'retries': 10}
>>> client = rarbgapi.RarbgAPI(options)

Supported categories

CATEGORY_ADULT
CATEGORY_MOVIE_XVID
CATEGORY_MOVIE_XVID_720P
CATEGORY_MOVIE_H264
CATEGORY_MOVIE_H264_1080P
CATEGORY_MOVIE_H264_720P
CATEGORY_MOVIE_H264_3D
CATEGORY_MOVIE_H264_4K
CATEGORY_MOVIE_H265_4K
CATEGORY_MOVIE_H265_4K_HDR
CATEGORY_MOVIE_FULL_BD
CATEGORY_MOVIE_BD_REMUX
CATEGORY_TV_EPISODES
CATEGORY_TV_EPISODES_HD
CATEGORY_TV_EPISODES_UHD
CATEGORY_MUSIC_MP3
CATEGORY_MUSIC_FLAC
CATEGORY_GAMES_PC_ISO
CATEGORY_GAMES_PC_RIP
CATEGORY_GAMES_PS3
CATEGORY_GAMES_PS4
CATEGORY_GAMES_XBOX
CATEGORY_SOFTWARE
CATEGORY_EBOOK

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for RarbgAPI, version 0.3.1
Filename, size File type Python version Upload date Hashes
Filename, size RarbgAPI-0.3.1-py3-none-any.whl (7.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size RarbgAPI-0.3.1.tar.gz (5.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page