Skip to content

Latest commit

 

History

History
43 lines (36 loc) · 1.22 KB

README.md

File metadata and controls

43 lines (36 loc) · 1.22 KB

BookQuest-cmd

Integration between finna and goodreads to check what books are available in a specific location. Can be used to read an exported .csv file from goodreads, and then checking if they can be found from a local library using Finna public api, as well as finding a price for the books from ebooks.com api. The tool only checks books in your want-to-read -shelf.

Usage

go run . -in=./resources/goodreads_library_export_small.csv -library=0/Helmet/ -out=./resources/result.json

Flags

  • in -flag to determine input file, required
  • out -flag to determine output file, required
  • library -flag, determines library param used in Finna searches

{ "Title": "Seveneves", "Author": "Stephenson, Neal", "FinnaIds": [ "helmet.2539843", "helmet.2252762" ], "Available": [ false, true ], "Urls": [ "https://www.finna.fi/Record/helmet.2539843", "https://www.finna.fi/Record/helmet.2252762", "https://www.ebooks.com/en-fi/book/1745874/seveneves/neal-stephenson/" ], "Price": { "Currency": "EUR", "Value": 12.29 } }

Urls contain all relevant URLs for the title, Price contains the price fetched from ebooks.com api, and Available contains scraped info about book's library availability in finna -urls