Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE_REQUEST] Use web structured data to import books #602

Open
Gildas-GH opened this issue Oct 16, 2024 · 2 comments
Open

[FEATURE_REQUEST] Use web structured data to import books #602

Gildas-GH opened this issue Oct 16, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Gildas-GH
Copy link

Hi, I have an idea to import books in the app, as OpenLibrary is often missing books and editions. I'd like to use Structured Data Markup on e-shopping websites to import author, cover image, title, ISBN and sometimes (when supported by the website) page number, edition.

Structured Data Markup is used by Google and other search engines to provide "Products" pages and other "intelligent" results (News, Q&A, recipes... https://developers.google.com/search/docs/appearance/structured-data/search-gallery)

Learn more about structured data : https://developers.google.com/search/docs/appearance/structured-data/intro-structured-data

Most of online shops use this markup to make their SEO better. We could also use it to get book info. I found two ways to implement it :

  • User gives a link and we scrape it to find structured data
  • User gives an ISBN and we find info on a pre-defined list of bookshops

A structured data parser already exists in Flutter : metadata_fetch

Examples

The proposed system is independent of the website the user wishes to use. It will work on most e-commerce sites in many countries.

For now I tried to fix some bugs in Openreads (first time using Flutter) but I was not able to test my code on a device (even virtual). If I manage to get it working, I'll try to implement it myself, if you'd like to have this system on Openreads. Thanks !

@Gildas-GH Gildas-GH added the enhancement New feature or request label Oct 16, 2024
@AWFeldick
Copy link

This is a cool idea that I'd use for sure.

Note though, the package you linked (metadata_fetch) isn't really actually a general structured data parser. It only collects a webpage's title, description, image, and url. I'm not actually finding a good structured data parser available in Dart either, so to implement this might require writing a parser that can detect book data from scratch.

Even so, I might take a stab at this this weekend for fun. Though I'm brand new to Dart, Flutter, and app development so it might not be pretty, lol.

@Gildas-GH
Copy link
Author

Gildas-GH added a commit to Gildas-GH/openreads that referenced this issue Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants