How to use the isbntools.dev.webquery.query function in isbntools

To help you get started, we’ve selected a few isbntools examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github xlcnd / isbntools / isbntools / contrib / modules / goom / goom.py View on Github external
def query(words):
    """Query the Google Books (JSON API v1) for metadata."""
    data = wquery(SERVICE_URL.format(words=words.replace(' ', '+')), UA)
    return _records(words, data)
github xlcnd / isbntools / isbntools / _wcat.py View on Github external
def query(isbn):
    """Query the worldcat.org service for metadata."""
    data = wquery(SERVICE_URL.format(isbn=isbn), UA)
    return _records(isbn, data)
github xlcnd / isbntools / isbntools / contrib / plugins / openl.py View on Github external
def query(isbn):
    """Query the openlibrary.org service for metadata."""
    data = wquery(SERVICE_URL.format(isbn=isbn), UA)
    return _records(isbn, data)
github xlcnd / isbntools / isbntools / _goob.py View on Github external
def query(isbn):
    """Query the Google Books (JSON API v1) service for metadata."""
    data = wquery(SERVICE_URL.format(isbn=isbn), UA)
    return _records(isbn, data)
github xlcnd / isbntools / isbntools / _wcated.py View on Github external
def query(isbn):
    """Query the worldcat.org service for related ISBNs."""
    data = wquery(SERVICE_URL.format(isbn=isbn), UA, parser=literal_eval)
    return _editions(isbn, data)
github xlcnd / isbntools / isbntools / contrib / plugins / isbndb.py View on Github external
def query(isbn):
    """Query the isbndb.org service for metadata."""
    if not apikeys.get('isbndb'):
        raise NoAPIKeyError
    data = wquery(SERVICE_URL.format(apikey=apikeys['isbndb'], isbn=isbn), UA)
    return _records(isbn, data)