A python3 wrapper for RARBG.to
Project description
rarbgapi
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)
Install
pip install rarbgapi
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", categories=[rarbgapi.RarbgAPI.CATEGORY_TV_EPISODES, rarbgapi.RarbgAPI.CATEGORY_TV_EPISODES_UHD])
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.
Source Distribution
RarbgAPI-0.4.0.tar.gz
(5.8 kB
view details)
Built Distribution
File details
Details for the file RarbgAPI-0.4.0.tar.gz
.
File metadata
- Download URL: RarbgAPI-0.4.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 942222a6a9243cf41231b612a0e7f13594dca19b96fecd577f01ec390f7c903f |
|
MD5 | e87a2e6e40c60024697e9b582f6835cd |
|
BLAKE2b-256 | 8a8704f6fd18beacf2447ddeb9e8152aa0f17a3ce52ce7697a881bdf28afc5ab |
Provenance
File details
Details for the file RarbgAPI-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: RarbgAPI-0.4.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bd507d662c3c9158374d2d9acfd3ca10b0c4720baad7339474f19ae6e97f303 |
|
MD5 | 8a3736d1785f7912905fb53d101b2eab |
|
BLAKE2b-256 | e27cd18f7794b5d11c6189d6ee49cc037b939534e8ad0d60a85c7b5b280ab208 |