Skip to main content

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

Release files for RarbgAPI 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for RarbgAPI 0.5.0
File Size Uploaded
RarbgAPI-0.5.0.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for RarbgAPI 0.5.0
File Interpreter ABI Platform
RarbgAPI-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size:14.6 kB

Release files / RarbgAPI-0.5.0.tar.gz

Download URL RarbgAPI-0.5.0.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7553fb34eb2dea3698783cbee1ae8233a39d25426034847cb8621f9ea97f2a6a
BLAKE2b-256 checksum
How to use checksums
1ada8cae3a6e33807fdbc88624bc39bd1e379ce21b2f599f3778f6cdf19ced93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Release files / RarbgAPI-0.5.0-py3-none-any.whl

Download URL RarbgAPI-0.5.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1f9168bc7da4f8b540b62793f44930f360464f4ac9e4cea055b36c0d51890b8
BLAKE2b-256 checksum
How to use checksums
b35eff4c3ae89911cb436717b83ea0294fa2f3cbbcc5f5a47d74d3fcb8ae521f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.2

1 release file

0.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page