The config.txt
file is designed to help organize your notes by associating each unique note ID with a specific location in a folder hierarchy.
Each line in the config.txt
file should follow this format:
<Note ID>, <Path in Hierarchy>
- Note ID: A unique identifier for each note. This is usually the last part of the link.
- Path in Hierarchy: Specifies where the note should be placed within your folder structure. This path should follow the defined hierarchy, with each folder separated by a
/
.
97X2xBIKRKerdp-AqyjWoA, Semester8/Summary
In this example:
97X2xBIKRKerdp-AqyjWoA
is the ID of the note.Semester8/Summary
is the path where this note will appear in the hierarchy. This means the note will be namedSummary
and be within theSemester8
folder.
To ensure proper functioning of the script, you need to provide your session cookie. You have two options:
-
Locate Your Session Cookie:
- Open your web browser and log in to the relevant website.
- Use the browser's developer tools (usually accessed by pressing
F12
) to locate your session cookie. You need to pickconnect.sid
.
-
Add the Cookie to
cookies.txt
:- Open the
cookies.txt
file in a text editor. - Add your session cookie in the following format:
<cookie_value>
- Save the
cookies.txt
file.
- Open the
If you prefer, you can skip creating the cookies.txt
file, and the script will attempt to fetch the session cookie automatically. However, be aware that this method has a low success rate and is not reliable.
Recommendation: It is highly recommended to manually retrieve and input the session cookie yourself, as this ensures the highest chance of success. Automatic retrieval is available as a fallback but should not be relied upon.
Go in the HedgedocFileGrabber.py
file and change the HOST if needeed.
The script download everything each time you use with without checking if the file changed or not.
The current config.txt
file is an example and you can/have to delete everything in it to have your own custom config.