You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,25 @@
34
34
35
35
You will need to get the `token_v2` and `file_token` values from your Notion cookies. The `pages` dictionary should contain pairs of `page_name: page_id` for each page you want to export.
36
36
37
+
## Needed Cookies
38
+
39
+
To export anything from Notion, one needs to authenticate oneself with some
40
+
Cookies (like a browser would). These cookies are called `token_v2` and
41
+
`file_token`. They are set on all requests of a logged in user when using the
42
+
Notion web-app.
43
+
44
+
45
+
### How to retrieve the Cookies?
46
+
47
+
- Go to [notion.so](https://notion.so).
48
+
- Log in with your account.
49
+
- Open the developer tools of your browser, open Application > Storage > Cookies
50
+
(Chrome); Storage tab (Firefox).
51
+
- Copy the value of the Cookies called `token_v2` and `file_token` and paste
52
+
them somewhere safe.
53
+
- ⚠️ If you don't find `file_token`, you need to have at least had exported a file manually once.
54
+
- Those cookies have a **1 year validity**, so you don't need to do this often.
0 commit comments