A python script that allows quick and easy capturing of thoughts in Notion via the Ubuntu terminal
The script currently is only supported for Linux (Ubuntu), I am working on versions for Windows as well.
Follow the following steps to install quicknote:
- Make sure you have Python installed on your machine
- Clone the repository to your machine
- Navigate to the project directory
quicknote
- Create an .env file inside
quicknote
- Follow this Youtube video to create an Integration in Notion and receive your database_id and secret key
- Insert the three lines
DATABASE_ID=
,DATABASE_NAME=
andSECRET_KEY=
followed by your id, name of your database and key in the.env
file - Change the path of
load_dotenv(...)
to your local.env
file
You can create a symbolic link to call the script from each directory in the terminal with just quicknote
- Make the script executable
chmod +x quicknote.py
- Create a symbolic link
sudo ln -s /path/to/quicknote.py /usr/local/bin/quicknote
where you replace /path/to with the absolute path to quicknote.py
If installed correctly you can use quicknote to capture thought in your terminal and add them to your Notion database.
If you created the symbolic link you can capture one or multiple thoughts in the following way quicknote thought1 thought2 thought3
. As you can see you can capture as many thoughts as you want in parallel. Each of the thoughts will be added as an own row in your database.
If you didn't create the symbolic link you can capture one or multiple thoughts in the following way python3 quicknote.py thought1 thought2 thought3
. Again you can capture as many thoughts as you want in parallel.