setnicka / ulozto-downloader

EOL - end of life | Uloz.to quick multiple sessions downloader
MIT License
280 stars 46 forks source link

Still same problem with separator (got an unexpected keyword argument 'separator') #166

Open Fikus25 opened 1 year ago

Fikus25 commented 1 year ago

I upgraded to 3.5.1 version and all required packages, but it still shows this error with separator(first appearance of this error was with previous version 3.4.1), do you know where's the problem / what means this error?

C:\Windows\System32>ulozto-downloader "https://ulozto.cz/file/TKvQVDFBEhtL/debia
n-9-6-0-amd64-netinst-iso"
[Autodetect] tflite_runtime available, using --auto-captcha
Starting downloading for url 'https://ulozto.cz/file/TKvQVDFBEhtL/debian-9-6-0-a
md64-netinst-iso'
Getting info (filename, filesize, )
Downloading into: './debian-9.6.0-amd64-netinst.iso'
CAPTCHA protected download - CAPTCHA challenges will be displayed
Terminating download. Please wait for stopping all threads.
Download terminated.
Traceback (most recent call last):
  File "C:\Users\XXX\AppData\Local\Programs\Python\Python38\lib\runpy.py", lin
e 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\XXX\AppData\Local\Programs\Python\Python38\lib\runpy.py", lin
e 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\XXX\AppData\Local\Programs\Python\Python38\Scripts\ulozto-dow
nloader.exe\__main__.py", line 7, in <module>
  File "C:\Users\XXX\AppData\Local\Programs\Python\Python38\lib\site-packages\
uldlib\cmd.py", line 143, in run
    d.download(url, args.parts, args.password, args.output, args.temp, args.yes,
 args.conn_timeout, args.enforce_tor)
  File "C:\Users\XXX\AppData\Local\Programs\Python\Python38\lib\site-packages\
uldlib\downloader.py", line 278, in download
    download_url = next(self.captcha_download_links_generator)
  File "C:\Users\XXX\AppData\Local\Programs\Python\Python38\lib\site-packages\
uldlib\page.py", line 252, in captcha_download_links_generator
    cached = self.linkCache.get_all_valid_links()
  File "C:\Users\XXX\AppData\Local\Programs\Python\Python38\lib\site-packages\
uldlib\linkcache.py", line 56, in get_all_valid_links
    return [link for link in cache_content if self._is_link_valid(link)]
  File "C:\Users\XXX\AppData\Local\Programs\Python\Python38\lib\site-packages\
uldlib\linkcache.py", line 56, in <listcomp>
    return [link for link in cache_content if self._is_link_valid(link)]
  File "C:\Users\XXX\AppData\Local\Programs\Python\Python38\lib\site-packages\
uldlib\linkcache.py", line 62, in _is_link_valid
    query_string = parse_qs(link, separator=';')
TypeError: parse_qs() got an unexpected keyword argument 'separator'
xgimp commented 1 year ago

What version of Python are you using?

Fikus25 commented 1 year ago

Python 3.8.6

xgimp commented 1 year ago

You need to upgrade at least to 3.8.8 to get it work. In older versions parse_qs function missing "separator" argument

Fikus25 commented 1 year ago

Upgraded to 3.8.9 and insted of error with separator I got this:

C:\Windows\System32>ulozto-downloader --output D:\ "https://ulozto.cz/file/TKvQV
DFBEhtL/debian-9-6-0-amd64-netinst-iso"
[Autodetect] tflite_runtime available, using --auto-captcha
Starting downloading for url 'https://ulozto.cz/file/TKvQVDFBEhtL/debian-9-6-0-a
md64-netinst-iso'
Getting info (filename, filesize, )
Downloading into: 'D:\debian-9.6.0-amd64-netinst.iso'
CAPTCHA protected download - CAPTCHA challenges will be displayed
Failed: Can not create 'D:\debian-9.6.0-amd64-netinst.iso' error: [Errno 2] No s
uch file or directory: 'D:\\debian-9.6.0-amd64-netinst.iso'
Terminating download. Please wait for stopping all threads.
Download terminated.