aboutsummaryrefslogtreecommitdiffstats
path: root/tpblite
diff options
context:
space:
mode:
authorMatt Lyon <matthewlyon18@gmail.com>2019-12-25 17:57:37 +0000
committerMatt Lyon <matthewlyon18@gmail.com>2019-12-25 17:57:37 +0000
commit87155dd4b37234628aebc41fcce123da439b5566 (patch)
tree3506598f3acb1901f4bfbfe499f29129593d8e8f /tpblite
parentba5437c656c479c36a7eb460d0b521898c11d0f6 (diff)
downloadtpb-lite-87155dd4b37234628aebc41fcce123da439b5566.tar.gz
tpb-lite-87155dd4b37234628aebc41fcce123da439b5566.tar.bz2
tpb-lite-87155dd4b37234628aebc41fcce123da439b5566.zip
updated README, added some commentsv.0.3.0
Diffstat (limited to 'tpblite')
-rw-r--r--tpblite/tpblite.py20
1 files changed, 12 insertions, 8 deletions
diff --git a/tpblite/tpblite.py b/tpblite/tpblite.py
index 3c68d62..1ec3991 100644
--- a/tpblite/tpblite.py
+++ b/tpblite/tpblite.py
@@ -29,12 +29,14 @@ class TPB:
Args:
query: Search string to query ThePirateBay
- page: page number to grab results from
- order TODO
- category TODO
+ page: Page number to grab results from
+ order: Order of results, default is ascending. List of possible options found in
+ tpblite.models.constants.ORDERS
+ category: Restrict search to specific category, for list of categories see
+ tpblite.models.constants.CATEGORIES
Return:
- Torrents
+ Torrents object
"""
q = QueryParser.search(query, self.base_url, page, order, category)
@@ -46,12 +48,14 @@ class TPB:
Args:
query: Search string to query ThePirateBay
- page: page number to grab results from
- order TODO
- category TODO
+ page: Page number to grab results from
+ order: Order of results, default is ascending. List of possible options found in
+ tpblite.models.constants.ORDERS
+ category: Restrict search to specific category, for list of categories see
+ tpblite.models.constants.CATEGORIES
Return:
- Torrent
+ Torrents object
"""
q = QueryParser.browse(self.base_url, category, page, order)