1
0
mirror of https://github.com/vikstrous/pirate-get synced 2025-01-10 10:04:21 +01:00
Commit Graph

93 Commits

Author SHA1 Message Date
Jacob Bortell
838a5973b9
Add -r/--total-results to limit search results
-r/--total-results allows the user to specify the number of links to return in the search. Because this option operates on the total search results, i.e. it's not the number of links to show per page, -p/--pages is ignored if --total-results is set. Perhaps in the future this option can be extended to operate by page.

Added total-results to config

total-results is set in the config to be 50 by default.
I also reverted the logic that only one page would be fetched if total-results is set. Now it has the original behavior: any number of pages can be requested, and total-results will filter the final result.

Minor wording update

Wording change also for cli parameter
2021-12-26 12:11:06 +01:00
morhook
3ad8620fbd Fixed error handling
On my computer it's failing on the first request to https://thepiratebay.org/ . I think the properties this code is handling need an HTTPError according to the doc https://docs.python.org/3/library/urllib.error.html\#urllib.error.URLError
2020-06-20 17:16:16 -03:00
96434c9963
update blacklist
https://piratesbaycc.com is working with the new api
2020-05-28 12:24:53 +02:00
35ecb3041f
reimplement fetching multiple pages 2020-05-25 10:55:26 +02:00
3eb240f316
add missing long options 2020-05-25 10:09:24 +02:00
9e7d00e0ce
implement browse mode 2020-05-25 10:09:24 +02:00
496b0f09b0
implement JSON output for results
Note: pirate-get now outputs to stderr by default.
This makes piping pirate-get (for example to jq) easier as
a normal pipe will selectively pick only the JSON, not the UI.
2020-05-24 10:55:34 +02:00
03c5a396e1
reimplement sorting 2020-05-24 10:55:34 +02:00
8eefc63226
fix mode handling and test 2020-05-24 10:55:34 +02:00
7f879cc31f
fix test falldown from new api change 2020-05-24 10:55:33 +02:00
f9f491ea65
readd cloudflare check 2020-05-24 10:55:33 +02:00
5daf53dab1
handle search with no terms/results 2020-05-24 10:55:33 +02:00
5a6429d61d
add option to configure requests timeout 2020-05-24 10:55:33 +02:00
c23c3db3d8
initial work on tpb api support 2020-05-24 10:55:32 +02:00
Viktor Stanchev
567ea9db11 set version to 0.3.7 2020-05-18 10:28:28 -04:00
f115bfd8d3
fix "copy magnet to clipboard" error
The info hash can contain uppercase hex digits as well.
2020-05-18 13:57:12 +02:00
Viktor Stanchev
0f87827490 set version to 0.3.6 2020-03-30 21:58:48 -04:00
f0bbd40631
update blacklist 2020-03-31 01:27:16 +02:00
a32b3742e0
add a custom message for cloudflare protected mirrors 2020-03-31 01:27:16 +02:00
Viktor Stanchev
850c88b398 set version to 0.3.5 2020-03-29 10:45:33 -04:00
Michele Guerini Rocco
e58ecb87dd
Merge pull request #132 from vikstrous/cookie
handle cookies for tpb http requests
2020-03-22 18:01:20 +01:00
Michele Guerini Rocco
ac614ebf6b
Merge pull request #128 from vikstrous/transmission
rename --port option to --transmission-endpoint
2020-03-10 18:45:37 +01:00
c491a96e1e
add aliases for backward compatibility 2020-03-10 18:41:13 +01:00
7bbfac52e9
handle cookies for tpb http requests
The pirate bay (or a hoster in between) added a mechanism
to rate-limit requests that forces us to handle cookies.
2020-03-10 14:44:49 +01:00
Viktor Stanchev
2e1ae8dc59 set version to 0.3.4 2019-11-24 23:30:28 +08:00
095f2d2b38
show the reason in case of the mirror failure 2019-11-24 11:02:50 +01:00
6642130fc5
handle mirrors with fake results table 2019-11-24 11:01:58 +01:00
d46ddff564
rename --port option to --transmission-endpoint 2019-11-15 18:49:25 +01:00
757231a188
remove unused import 2019-11-15 18:31:04 +01:00
a025dc7fc2
break some >80 chars lines 2019-11-15 18:18:11 +01:00
Viktor Stanchev
4af9b4ff8d bump version 2018-09-18 22:45:41 -07:00
Augusto Morais
651ee9747f fix exception 2018-09-14 23:14:29 -03:00
Augusto Morais
3074abf463 give more detail when there is not possible download a torrent file 2018-09-14 22:11:29 -03:00
Marcelo Kronberg
559bcf930c fix for empty href on links that ocasionally cause an uncaught exception 2018-06-27 14:33:07 +01:00
Viktor Stanchev
344a764535 bump version to 0.3.1 2018-06-16 10:26:59 -07:00
matteosandrin
a19fb7fc30 Copying torrent magnets from the pirate-get CLI
I often use seedboxes, and find myself having to save a magnet to file and then copy its contents, to input a magnet link into my seedbox.
To remedy this issue, I introduced the 'c' command inside pirate-get, that allows the user to copy a magnet link to theit clipboard.
For example, the 'c3' command would copy torrent number three into the user's clipboard.

I hope you find my pull request satisfactory. Have a great day!

 - Matteo
2018-06-14 19:10:23 -04:00
Viktor Stanchev
42aa9d8555 add some configs and local csv db search
This adds support for the new csv database format, closes #113.
This also adds the port and auth configs for transmission.
2018-05-27 23:25:19 -07:00
Viktor Stanchev
39ad5e7f63 bump version 2018-05-27 08:21:57 -07:00
beneri
f85f355c07 add support for authentication in transmission 2018-05-26 09:58:07 +02:00
Viktor Stanchev
748539a037 bump versioin to v0.2.12 2017-09-07 21:00:23 -07:00
e80155f744
add check for missing local database file 2017-09-06 21:13:00 +02:00
127bf8bdfb
replace torcache.net with itorrents.org cache 2017-09-06 19:27:00 +02:00
c0293fce1d
update blacklist 2017-08-31 01:14:23 +02:00
1b435c2c1b
set version to 0.2.11 2017-07-17 02:19:06 +02:00
Viktor Stanchev
6e9e922d92 fix color config
fix #105
2017-06-18 12:22:38 -07:00
Viktor Stanchev
a7be2cd823 set version to 0.2.10 2016-11-04 20:42:48 -07:00
Viktor Stanchev
bb352f9115 fix saving magents and torrents to a file 2016-10-23 13:32:37 -07:00
rnhmjoj
24e77a15b4
Add option to print version number, fix issue #90 2016-09-20 19:47:27 +02:00
rnhmjoj
0bc34cf68f
Update blacklist 2016-09-20 19:30:47 +02:00
rnhmjoj
bba0f41224
Allow users to set custom mirrors 2016-09-03 14:53:00 +02:00