1
0
mirror of https://github.com/vikstrous/pirate-get synced 2025-01-09 09:59:51 +01:00
Commit Graph

336 Commits

Author SHA1 Message Date
f0cf30bd48
set version to 0.4.2 2022-03-15 17:34:52 +01:00
edc547428b
update proxybay url 2022-03-15 17:31:48 +01:00
c0ca18f2da
set version to 0.4.1 2021-12-26 12:15:40 +01:00
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
1e9b3142a2
fix missing data in release tarball 2020-05-28 13:48:19 +02:00
96434c9963
update blacklist
https://piratesbaycc.com is working with the new api
2020-05-28 12:24:53 +02:00
Michele Guerini Rocco
7c276882ab
Merge pull request #136 from vikstrous/api
Big rewrite for the pirate bay new API
2020-05-28 12:20:08 +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
c54c19ac01
freeze timezone to make tests deterministic 2020-05-24 10:55:33 +02:00
130a4292a2
fix test failing with no internet 2020-05-24 10:55:33 +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
2b659305ec
add tests data to pypi 2020-05-24 10:55:33 +02:00
cb489b395b
drop beautifulsoup dependency 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
890d6a7d85
Merge pull request #133 from vikstrous/fix-tests
configure cicleci again
2020-03-31 07:51:51 -04:00
Viktor Stanchev
ba65b59598 configure cicleci again 2020-03-31 07:51:09 -04: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
c6f742893c
fix tests with custom url opener 2020-03-10 17:12:09 +01:00
95782b0974
fix print_results tests when COLUMNS is not set 2020-03-10 15:39:23 +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
5368dacb29
Merge pull request #124 from vikstrous/renovate
enable renovate
2018-11-05 20:08:44 -08:00
Viktor Stanchev
90c9efe433 enable renovate 2018-11-05 20:16:42 -08:00
Viktor Stanchev
4af9b4ff8d bump version 2018-09-18 22:45:41 -07:00
Viktor Stanchev
7b2d0795cf
Merge pull request #123 from moraisaugusto/improve_error
give more detail on error
2018-09-18 22:34:04 -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
Viktor Stanchev
d86561b30c
Merge pull request #121 from m-kronberg/master
fix for empty href on links that ocasionally cause an uncaught exception
2018-06-27 21:51:14 -07:00