diff options
author | Matt Lyon <matthewlyon18@gmail.com> | 2019-12-25 17:57:37 +0000 |
---|---|---|
committer | Matt Lyon <matthewlyon18@gmail.com> | 2019-12-25 17:57:37 +0000 |
commit | 87155dd4b37234628aebc41fcce123da439b5566 (patch) | |
tree | 3506598f3acb1901f4bfbfe499f29129593d8e8f /tpblite/tpblite.py | |
parent | ba5437c656c479c36a7eb460d0b521898c11d0f6 (diff) | |
download | tpb-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/tpblite.py')
-rw-r--r-- | tpblite/tpblite.py | 20 |
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) |