bookcut icon indicating copy to clipboard operation
bookcut copied to clipboard

Can't download articles due to TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'

Open bashar-araiqat opened this issue 2 years ago • 0 comments

Connected to: https://api.openaccessbutton.org/find Do you want to download: High Prevalence of Pericardial Involvement in College Student Athletes Recovering From COVID-19.pdf [y/N]: y Traceback (most recent call last): File "C:\Users\kingb\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\kingb\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in run_code exec(code, run_globals) File "C:\Users\kingb\AppData\Local\Programs\Python\Python310\Scripts\bookcut.exe_main.py", line 7, in File "C:\Users\kingb\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1130, in call return self.main(*args, **kwargs) File "C:\Users\kingb\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1055, in main rv = self.invoke(ctx) File "C:\Users\kingb\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1657, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "C:\Users\kingb\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1404, in invoke return ctx.invoke(self.callback, **ctx.params) File "C:\Users\kingb\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 760, in invoke return __callback(*args, **kwargs) File "C:\Users\kingb\AppData\Local\Programs\Python\Python310\lib\site-packages\bookcut\bookcut.py", line 188, in article article_search(doi, title) File "C:\Users\kingb\AppData\Local\Programs\Python\Python310\lib\site-packages\bookcut\article.py", line 20, in article_search ask_for_downloading(filename, url) File "C:\Users\kingb\AppData\Local\Programs\Python\Python310\lib\site-packages\bookcut\article.py", line 28, in ask_for_downloading search_downloader(articlefilename, url) File "C:\Users\kingb\AppData\Local\Programs\Python\Python310\lib\site-packages\bookcut\search.py", line 17, in search_downloader total_size = int(response.headers.get("content-length")) TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'

bashar-araiqat avatar Jun 11 '22 20:06 bashar-araiqat