This script will create Notion pages from ISBN numbers. Wikimedia Link: https://www.notion.so/42wolfsburgberlin/42-Library-98be64c67c5742ffac261d0342988109?pvs=4
Prerequisites:
- Git is installed: https://github.com/git-guides/install-git
- pip3 is installed: https://www.delftstack.com/howto/python/python-install-pip3-mac/
- Repository cloned
How to get it running
- Install necessary packages:
pip3 install -r requirements.txt
- Get the .env file to access the Notion API from 1Password and place it into the main folder of the app
- Try out the edit.py to create a new wiki page for a book
python3 add_book_Notion.py 9781529038347
. The number is an ISBN of your choice. - Try out the barcode.py to scan a book and then execute edit.py to create a wiki page automatically:
python3 barcode.py
Changes in Notion database after adding a book
- Select applicable library (Berlin / Wolfsburg)
- Select most appropriate Genre (select exactly one)
- Add information on "Edition" (which edition is it if not First Edition?) - this is not currently reliably extracted from the Google API
- Select appropriate keywords for "Folksonomy"
- In field "Published" add the publication date of the edition - this is not currently reliably extracted from the Google API
- Check correctness of other fields