aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorMatt <32886639+mattlyon93@users.noreply.github.com>2019-12-25 16:29:10 +0000
committerGitHub <noreply@github.com>2019-12-25 16:29:10 +0000
commitba5437c656c479c36a7eb460d0b521898c11d0f6 (patch)
treeb651469e0cb4c83021e6a2e3368f51441fb108d3 /README.md
parentc0b26a45f8bf910de9f594f28003cff7dc9e37a7 (diff)
downloadtpb-lite-ba5437c656c479c36a7eb460d0b521898c11d0f6.tar.gz
tpb-lite-ba5437c656c479c36a7eb460d0b521898c11d0f6.tar.bz2
tpb-lite-ba5437c656c479c36a7eb460d0b521898c11d0f6.zip
Update README.md
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files 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
+```