Jump to content

User:GeertivpBot/Pywikibot/Scripts/create isbn edition.py

From Meta, a Wikimedia project coordination wiki

create_isbn_edition.py is a bot to register book editions into Wikidata, based on a booklib reference.

Extremely easy to use. It is not overwriting existing data.

Metadata[edit]

It uses data from a booklib reference database, with a source reference when creating new items.

Usage[edit]

pwb create_isbn_edition

followed by a list of ISBN number (using regex extraction) in stdin

Parameters[edit]

    P1: digital library (default wiki "-")

    P2: ISO 639-1 language code

    P3 P4...: additional P/Q value pairs

    stdin: list of ISBN numbers (identification is done via an ISBN regex expression.extraction of the International standard book number; version 10 or 13).

Free text is accepted (e.g. from a Wikipedia references list, or publication list).

Algorithm[edit]

Data is extracted from the booklib reference database and augmented into Wikidata.

Code[edit]

More information about its functionality, error handling, and algorithm is available in the code header.