isbn_meta does not work as documented
DarthDobber opened this issue · comments
Describe the bug
When attempting to use the ISBN_META tool it errors out and will not return any data
To Reproduce
Steps to reproduce the behavior:
- Open a CLI and run python.
- import isbnlib
- isbn = 'ANY ISBN NUMBER'
- book = isbnlib.meta(isbn)
- Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\isbnlib_metadata.py", line 26, in query
if cache[key]:
File "C:\ProgramData\Anaconda3\lib\site-packages\isbnlib_imcache.py", line 26, in getitem
return self.d[k]
KeyError: '9784286088174default'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\isbnlib_goob.py", line 45, in _records
recs = data['items'][0]['volumeInfo']
KeyError: 'items'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "C:\ProgramData\Anaconda3\lib\site-packages\isbnlib_ext.py", line 26, in meta
return query(isbn, service, cache) if isbn else None
File "C:\ProgramData\Anaconda3\lib\site-packages\isbnlib_metadata.py", line 31, in query
meta = servicesservice
File "C:\ProgramData\Anaconda3\lib\site-packages\isbnlib_goob.py", line 64, in query
return _records(isbn, data)
File "C:\ProgramData\Anaconda3\lib\site-packages\isbnlib_goob.py", line 48, in _records
raise NoDataForSelectorError(isbn)
isbnlib.dev._exceptions.NoDataForSelectorError: no data for this selector (9784286088174)
The same issue occurs when running the tool isbn_meta from a command line without using python******
Expected behavior
I expect to receive meta data from google books
Screenshots
If applicable, add screenshots to help explain your problem.
Your computer (please complete the following information):
- OS: Windows 10
- Python version 3.7.1
- isbnlib version 4.3.18
Additional context
Add any other context about the problem here.