Kobo2Notion is a Python-based tool that extracts bookmark data from Kobo e-readers and seamlessly uploads it into your Notion database. Additionally, it can summarize bookmarks using Google Gemini. This project offers a cost-free alternative to existing solutions like Readwise, providing users with greater control over their reading data.
- Extract bookmarks from Kobo e-readers
- Upload bookmarks to a Notion database
- Summarize bookmarks using Google Gemini AI
- Free and open-source
- Python 3.11.9 or later (not tested on other versions)
- Kobo e-reader
- Notion account
- Google Cloud account (for Gemini API access)
-
Clone the repository:
git clone https://github.com/ghnmqdtg/Kobo2Notion.git cd Kobo2Notion
-
Install dependencies:
pip install -r requirements.txt
-
Connect your Kobo e-reader to your computer.
-
Set the
SQLITE_SOURCE
to the path of the KoboReader.sqlite file. -
Get the Notion API key
-
Go to Notion Integrations
-
Create a new integration named
kobo-export
and set associated workspace to your workspace. -
Click
Save
. -
Click
Show
and copy theSECRET
value. -
Paste the
SECRET
value into theNOTION_API_KEY
environment variable in.env
file.
-
-
Get the Notion Database ID
-
Duplicate the database template here to your workspace.
-
Click
Share
and copy the link. -
Extract the
Notion Database ID
from the URL.For example, if the URL is
https://www.notion.so/ghnmqdtg/4978bcc5eda847a59940f5cb4aff32d9?v=28a249bcfa92488889f3505127a8e1ef&pvs=4
, theNotion Database ID
is4978bcc5eda847a59940f5cb4aff32d9
. -
Paste the
Notion Database ID
value into theNOTION_DATABASE_ID
environment variable in.env
file. -
Connect the database to the
kobo-export
integration.
-
-
Get the Google Gemini API key here (optional)
This is an optional feature if you want to summarize your bookmarks. The api for
gemini-1.5-flash
is free on Google AI Studio. If you don't need it, setSUMMARIZE_BOOKMARKS
tofalse
in.env
file.Copy the
API Key
value into theGEMINI_API_KEY
environment variable in.env
file. -
Adjust any other settings in the
config.py
file. For example, you can change the prompt language toen
for English.
- Run the export script and wait for the script to finish.
python kobo2notion.py
-
Check the Notion database to see the bookmarks.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.
- mollykannn/kobo2notion
- starsdog/export_kobo
- Notion for their API
- Google for the Gemini AI model
For questions or support, please open an issue on the GitHub repository.