bookwyrm icon indicating copy to clipboard operation
bookwyrm copied to clipboard

Import from Inventaire

Open tnntwister opened this issue 3 years ago • 5 comments

Is your feature request related to a problem? Please describe. I'm using inventaire.io and i would like to import my bookdata from this site into my bookwyrm account.

Describe the solution you'd like I want to export inventaire.io's bookdata and import it into bookwyrm.

Describe alternatives you've considered I've tried to go through goodreads and co but i didn't find how to import data on these sites too.

tnntwister avatar Dec 12 '21 09:12 tnntwister

Here is what an Inventaire csv export looks like: inventory.csv

maxlath avatar Dec 13 '21 15:12 maxlath

This issue would be adding a CSV importer (https://github.com/bookwyrm-social/bookwyrm/tree/main/bookwyrm/importers) to handle Inventaire's data source. Off the top of my head, there are a few things that would need to be done:

  • Add the headers of the inventaire csv file to the row mappings (https://github.com/bookwyrm-social/bookwyrm/blob/main/bookwyrm/importers/importer.py#L23) so that they will be correctly interpreted by the importer
  • Add an Inventaire importer file, similar to the ones that exist already for Goodreads, LibraryThing, etc
  • Add Inventaire to the list of import options in the UI (https://github.com/bookwyrm-social/bookwyrm/blob/main/bookwyrm/templates/import/import.html#L24)

treaz avatar Feb 08 '22 15:02 treaz

For the Inventaire importer specifically, there's a PR open that never got finished, which might be useful as a starting point or at least reference: https://github.com/bookwyrm-social/bookwyrm/pull/1194/files

treaz avatar Feb 09 '22 11:02 treaz

Import is nice, but it would be great to even go a step further: having some kind of synchronisation from inventaire to bookwyrm.

What I mean by that is for every book added in inventaire.io to be available on bookwyrm. Inventaire has shelves as well: it would be great to be able to "link" my shelves on bookwyrm to those I manage in inventaire...

Would that be possible?

Pamplemousse avatar Mar 07 '24 20:03 Pamplemousse

It isn't really feasible to copy catalogues over wholesale -- it puts a huge storage burden on each instance. At the outset, I designed the book storage to try to only contain books that users are actively engaged with, in order to allow smaller instances to manage a proportional amount of book data. That's why search lets you query and import from external catalogues on a case by case basis.

That said, having better sync with inventaire (for example, sending edits made to metadata back to their source record) is definitely possible and would be great (I've spoken with folks at OpenLibrary about this as well). It's a huge undertaking and requires a lot of careful collaboration, so it just hasn't been possible from a development perspective yet.

As to syncing shelves, I would love to have that and it is possible, it's just a really huge project.

mouse-reeve avatar Mar 23 '24 15:03 mouse-reeve