Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bashar-araiqat opened this issue Jun 11, 2022 · 0 comments

Comments

@bashar-araiqat
Copy link

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant