setnicka / ulozto-downloader

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

Exception: Unknown document has been received #43

Closed sopos closed 2 years ago

sopos commented 3 years ago
Starting downloading for url 'https://ulozto.cz/file/T0DEh8abg70U/dluh-2010-mkv'                                                                              
Getting info (filename, filesize, ...)                                                                                                                        
CAPTCHA protected download - CAPTCHA challenges will be displayed                                                                                             

ERROR:root:[ignored]ing new Tor circuit (may take some time)...                                                                                               
Traceback (most recent call last):                                                                                                                            
  File "/home/sopos/.local/lib/python3.7/site-packages/torpy/utils.py", line 78, in newfn                                                                     
    return func(*args, **kwargs)                                                                                                                              
  File "/home/sopos/.local/lib/python3.7/site-packages/torpy/consesus.py", line 157, in renew                                                                
    raise Exception('Unknown document has been received')
Exception: Unknown document has been received
ERROR:root:[ignored]
Traceback (most recent call last):
  File "/home/sopos/.local/lib/python3.7/site-packages/torpy/utils.py", line 78, in newfn                                                                    
    return func(*args, **kwargs)
  File "/home/sopos/.local/lib/python3.7/site-packages/torpy/consesus.py", line 157, in renew                                                                
    raise Exception('Unknown document has been received')
Exception: Unknown document has been received
ERROR:root:[ignored]
Traceback (most recent call last):
  File "/home/sopos/.local/lib/python3.7/site-packages/torpy/utils.py", line 78, in newfn
    return func(*args, **kwargs)
  File "/home/sopos/.local/lib/python3.7/site-packages/torpy/consesus.py", line 157, in renew
    raise Exception('Unknown document has been received')
Exception: Unknown document has been received
Traceback (most recent call last):
  File "/home/sopos/bin/ul", line 48, in <module>
    main()
  File "/home/sopos/bin/ul", line 44, in main
    d.download(args.url, args.parts, args.output)
  File "/home/sopos/ulozto_downloader/ulozto_downloader/downloader.py", line 168, in download
    download_url = next(self.captcha_download_links_generator)
  File "/home/sopos/ulozto_downloader/ulozto_downloader/page.py", line 137, in captcha_download_links_generator
    with tor_requests_session(hops_count=2, retries=0) as s:
  File "/usr/lib/python3.7/contextlib.py", line 112, in __enter__
    return next(self.gen)
  File "/home/sopos/.local/lib/python3.7/site-packages/torpy/http/requests.py", line 66, in tor_requests_session
    with TorRequests(hops_count, headers, auth_data) as tr:
  File "/home/sopos/.local/lib/python3.7/site-packages/torpy/http/requests.py", line 40, in __enter__
    self._tor = TorClient(auth_data=self._auth_data)
  File "/home/sopos/.local/lib/python3.7/site-packages/torpy/client.py", line 37, in __init__
    self._consensus = consensus or TorConsensus()
  File "/home/sopos/.local/lib/python3.7/site-packages/torpy/consesus.py", line 130, in __init__
    self.renew()
  File "/home/sopos/.local/lib/python3.7/site-packages/torpy/utils.py", line 78, in newfn
    return func(*args, **kwargs)
  File "/home/sopos/.local/lib/python3.7/site-packages/torpy/consesus.py", line 157, in renew
    raise Exception('Unknown document has been received')
Exception: Unknown document has been received
vladodriver commented 3 years ago

https://github.com/setnicka/ulozto-downloader/pull/50