Blocked by cloudflare
[19:44:45] check_cookie: Blocked by Cloudflare captcha, please set your cookie and useragent
I have double and triple checked my cookie and user agent and even used the gui version to generate it. Regardless of what I do i get the above error. Is this a known issue or is there something I can do to debug?
This is related to issue #412 and a temporary fix can be found here.
This is related to issue #412 and a temporary fix can be found here.
thank you i implemented that and it worked
stopped working today :(
This is related to issue #412 and a temporary fix can be found here.
thank you i implemented that and it worked
Also had the same issue of getting blocked by cloudflare, so I tried implementing this fix, for version beta0.6.0, then ran pip install --no-cache-dir . --user, and when trying out a download, it gave me this:
[01:59:07] download: module 'anyio' has no attribute 'CancelScope'
[01:59:07] download: Starting to download https://i1.nhentai.net/galleries/2969297/187.jpg ...
[01:59:07] download: Exception type: <class 'AttributeError'>
File "C:\ProgramData\Anaconda3\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\ProgramData\Anaconda3\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\ProgramData\Anaconda3\Scripts\nhentai.exe\__main__.py", line 7, in <module>
sys.exit(main())
File "C:\Users\+++++\AppData\Roaming\Python\Python39\site-packages\nhentai\command.py", line 107, in main
doujinshi.download()
File "C:\Users\+++++\AppData\Roaming\Python\Python39\site-packages\nhentai\doujinshi.py", line 120, in download
return self.downloader.start_download(download_queue, self.filename)
File "C:\Users\+++++\AppData\Roaming\Python\Python39\site-packages\nhentai\downloader.py", line 166, in start_download
asyncio.run(self.fiber(coroutines))
File "C:\ProgramData\Anaconda3\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\ProgramData\Anaconda3\lib\asyncio\base_events.py", line 629, in run_until_complete
self.run_forever()
File "C:\ProgramData\Anaconda3\lib\asyncio\windows_events.py", line 316, in run_forever
super().run_forever()
File "C:\ProgramData\Anaconda3\lib\asyncio\base_events.py", line 596, in run_forever
self._run_once()
File "C:\ProgramData\Anaconda3\lib\asyncio\base_events.py", line 1890, in _run_once
handle._run()
File "C:\ProgramData\Anaconda3\lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "C:\Users\+++++\AppData\Roaming\Python\Python39\site-packages\nhentai\downloader.py", line 61, in _semaphore_download
return await self.download(*args, **kwargs)
File "C:\Users\+++++\AppData\Roaming\Python\Python39\site-packages\nhentai\downloader.py", line 111, in download
traceback.print_stack()
[01:59:07] download: module 'anyio' has no attribute 'CancelScope'
[01:59:07] fiber: An error occurred: https://i1.nhentai.net/galleries/2969297/95.jpg download failed, return value -9
[01:59:07] fiber: An error occurred: https://i1.nhentai.net/galleries/2969297/96.jpg download failed, return value -9
[01:59:07] fiber: An error occurred: https://i1.nhentai.net/galleries/2969297/97.jpg download failed, return value -9
[01:59:07] fiber: An error occurred: https://i1.nhentai.net/galleries/2969297/98.jpg download failed, return value -9
. . .
repeat like 60 times
. . .
[01:59:07] fiber: An error occurred: https://i1.nhentai.net/galleries/2969297/94.jpg download failed, return value -9
[01:59:07] fiber: An error occurred: https://i1.nhentai.net/galleries/2969297/156.jpg download failed, return value -9
[01:59:07] fiber: An error occurred: https://i1.nhentai.net/galleries/2969297/187.jpg download failed, return value -9
[01:59:07] generate_html: HTML Viewer has been written to ".\[517065][moya][[moya] Oyasumi Okaa-san I - Good Night Mom I [English][DarklordMTLs]]\index.html"
[01:59:07] main: All done.
the stack trace is so long its ridiculous, probably because every download thread is individually crashing and returning a trace. Anyways, the result is a new folder, named correctly, and a index.html, with no images.