This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NOTE: filenames hardcoded! | |
const got = require('got') | |
const csv = require('csv') | |
const fs = require('fs') | |
async function fetchGoogleBookId(isbn) { | |
const queryUrl = `https://www.googleapis.com/books/v1/volumes?q=isbn:${isbn}` | |
const response = await got(queryUrl) | |
const json = JSON.parse(response.body) |