From ba5437c656c479c36a7eb460d0b521898c11d0f6 Mon Sep 17 00:00:00 2001 From: Matt <32886639+mattlyon93@users.noreply.github.com> Date: Wed, 25 Dec 2019 16:29:10 +0000 Subject: Update README.md --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4fba4ab..eb64e08 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ for torrent in torrents: print(torrent) # Customize your search -from tpb import CATEGORIES, ORDERS +from tpblite import CATEGORIES, ORDERS torrents = t.search('public domain', page=2, order=ORDERS.NAME.DEC, category=CATEGORIES.VIDEO.MOVIES) # Get the most seeded torrent based on a filter @@ -47,6 +47,12 @@ torrent = torrents[3] # Get the magnet link for a torrent print(torrent.magnetlink) ``` +## Browse +Alternatively you can browse all of the torrents from a single category. +```python +torrents = t.browse(category=CATEGORIES.VIDEO.MOVIES, page=1, order=ORDERS.UPLOADED.DES) +``` + ## Torrents object The search function returns a `Torrents` object, which is a *list-like* collection of the torrents found. @@ -79,4 +85,4 @@ t = TPB() torrents = t.search('GIMP 2.10.8') torrent = torrents.getBestTorrent() subprocess.call(['aria2c', torrent.magnetlink]) -``` \ No newline at end of file +``` -- cgit v1.2.3