The python package 'isbntools' (https://github.com/xlcnd/isbntools) allows to retrieve bibliography information about books from online resources. In particular the script isbn_meta [number]
retrieves information about the book with given isbn-number [number]
. Among other it uses data from google using googleapis as https://www.googleapis.com/books/v1/volumes?q=isbn+[number]&fields=
. It is obvious that the url can be adjusted to search e.g. for a general [keyword]
https://www.googleapis.com/books/v1/volumes?q=[keyword]
. But how can I reuse the code in 'isbntools' to create a script, say title_meta
which searches and retrieves bibliography data based on [keyword]
. My problem is to some extent that it is not obvious for me how to deal consistently with the python package.
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
You can override the variable that contains the URL in this way, when you want:
Notice that you will need an
%s
in theSERVICE_URL
variable on the place you want to put your keyword.In version 3.0.1 exists a new script
isbn_goom
which uses goom.py that does exactly what you want.