404minds / books-db

Database of Books in JSON format
GNU General Public License v3.0
6 stars 26 forks source link

Add fetcher and add 6 books #35

Open markpotocki opened 4 years ago

markpotocki commented 4 years ago

Please check all tasks that you've completed by placing an x within the square braces below.

Proposed Changes

Fixes issue

Fixes #20 Fixes #18 Fixes #17 Fixes #10 Fixes #5 Fixes #4

Adds a fetcher written in go to grab book information using Google Books API. The fecther can be used by giving it a space delimited list of book titles to search for. It will grab the first result and save the information in JSON format.

Example Usage ./fetcher hunger-games alice-in-wonderland

Spaces in titles need to be separated by "-"

The json files for the remainder of the books have been generated using this. The publication dates are the dates the edition it is referencing came out not the original publication date.

niftytushar commented 4 years ago

@markpotocki great work on the fetcher. But it gets limited information about the books, and the publisher & publication dates are also incorrect. Is it possible to modify the fetch to also fetch data from Goodreads or Library Thing?

markpotocki commented 4 years ago

@niftytushar it should be possible to modify it to use those I will look at their API and modify it to work with those instead. Should be able to get those in by the end of today and I’ll update this PR

niftytushar commented 4 years ago

Awesome! Thanks you so much.