Closed L04DB4L4NC3R closed 4 years ago
the original pirate bay is changing and the page will load with javascript. it mean the program need a better way to download that page (something like selenium or similar). a new parser and url format is also needed.
the quickfix i can think of is to use piratebay mirror with old layout. i'm creating a pr here https://github.com/rachmadaniHaryono/we-get/tree/feature/print-url.
if you can test it and it is good enough, i will merge it to master
in the end, there should be a config file so user can change the url format when things gone wrong with the website
requests-html is probably suitable for this.
i will consider that. it will mean change a lot of part on the program and parser as well. maybe can be added for the next big release
e: and TIL request-html just support python 3.6. if it added to program i will have to consider user with python version too for example the op which have python3.8
the original pirate bay is changing and the page will load with javascript. it mean the program need a better way to download that page (something like selenium or similar). a new parser and url format is also needed.
the quickfix i can think of is to use piratebay mirror with old layout. i'm creating a pr here https://github.com/rachmadaniHaryono/we-get/tree/feature/print-url.
if you can test it and it is good enough, i will merge it to master
in the end, there should be a config file so user can change the url format when things gone wrong with the website
It is working with the TPB mirror in your PR. Although same issue persists with 1337x. Also, control characters aren't parsed properly, so the following line throws an error with 1337x:
Initially I thought it might be due to bad urlencoding, but it works fine with the piratebay proxy. If a user consciously avoids control characters (space in this case) then it can be avoided, but it is not good UX.
i added fix for 1337x module.
little comment about difference result:
in TPB module space will be converted to -
character. in 1337x module on the same branch as above i will assume that the search term will be converted using python3 quote_plus https://docs.python.org/3/library/urllib.parse.html#urllib.parse.quote_plus
both is not tested with unusual character etc and maybe there is still similar bug on other module as well
the branch related to this issue is merged to master branch
if you find another bug, please create another issue
thank you
Describe the bug The torrents fail to fetch.
To Reproduce
Install the package:
Run the following commands:
Expected behavior Expected to see a list of torrents
Screenshots
Desktop (please complete the following information):
Additional context Note that all of the dependancies and pre-requisites for this utility have been installed already: