abhint / SeedrAPI

Unofficial API wrapper for seedr.cc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

seedr Seedr API

Unofficial API wrapper for seedr.cc
Inspired by theabbie's seedr-api

Powered by @harp_tech (Telegram)

Installation

pip install seedr

Usage

# Import the lib
from seedr import SeedrAPI

# Login to account. You can login to your account by email and password or via access token.
# After login an access token will retrieve. Don't care, It's for devs.
seedr = SeedrAPI(email='example@email.com', password='example')

# Get all files and folders in your account
files = seedr.get_drive()

# Add magnet to your account
tor = seedr.add_torrent('magnet:?xt=urn:btih:c12fe1c06bba254a9dc9f519b335aa7c1367a88a')
print(tor) # This may retrieve some info about torrent etc...

# Go to a dir and get details
dir = seedr.get_folder('folder_id')

# Get direct link for a file
file = seedr.get_file('file_id')

# Delete a folder
seedr.delete_folder('folder_id')

# Delete a file
seedr.delete_file('file_id')

# Rename a file
seedr.rename('file_id', 'new_name')

Credits

No dev contacts here. Support chat

About

Unofficial API wrapper for seedr.cc

License:GNU General Public License v3.0


Languages

Language:Python 100.0%