diff options
author | Matt <32886639+mattlyon93@users.noreply.github.com> | 2019-12-25 16:29:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-25 16:29:10 +0000 |
commit | ba5437c656c479c36a7eb460d0b521898c11d0f6 (patch) | |
tree | b651469e0cb4c83021e6a2e3368f51441fb108d3 | |
parent | c0b26a45f8bf910de9f594f28003cff7dc9e37a7 (diff) | |
download | tpb-lite-ba5437c656c479c36a7eb460d0b521898c11d0f6.tar.gz tpb-lite-ba5437c656c479c36a7eb460d0b521898c11d0f6.tar.bz2 tpb-lite-ba5437c656c479c36a7eb460d0b521898c11d0f6.zip |
Update README.md
-rw-r--r-- | README.md | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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 +``` |