Uploaded image for project: 'BookBrainz'
  1. BookBrainz
  2. BB-151

Create user script for importing books from Amazon

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Normal Normal
    • Long-term
    • None
    • None
    • None

      User scripts are pieces of JavaScript code which execute when the user visits a particular page or website. See https://greasyfork.org/en for examples.

      We'd like to make it possible for users to quickly import information from an Amazon product page for a book into BookBrainz. To do this, we need a user script designed that will allow the user to press a button to load a dialog box on Amazon, allowing the user to sign in (preferably once per session), and then present the user with an editing form which is auto-filled with information scraped from the page. The form should be a simplified version of the BookBrainz edition editing form.

      Since the user shouldn't have to leave the page to enter books, it may also be necessary to create a work, creator and publication alongside the edition. The work and publication title can be taken from the edition title - other information can be left blank. The creator name should be entered in a separate form field.

      The user script should submit to the BookBrainz web service. You should use the BookBrainz sandbox to test your script (OAuth client ID details can be found in bookbrainz-site/config/development.json.example - this would also be a useful place to check how to do OAuth login).

      The script should work in all of the supported browsers of BookBrainz - http://bb-user-guide.readthedocs.org/en/latest/reference/browser-support/

            shubh Shubham
            lordsputnik Ben Ockmore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Version Package
                Long-term