{"id":15229095,"url":"https://github.com/tootouch/notionist","last_synced_at":"2025-04-10T01:14:18.589Z","repository":{"id":57446915,"uuid":"269899512","full_name":"TooTouch/notionist","owner":"TooTouch","description":"Life is divided into before and after meeting Notion","archived":false,"fork":false,"pushed_at":"2020-08-01T11:29:00.000Z","size":20,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T01:14:12.760Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TooTouch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-06T07:05:35.000Z","updated_at":"2022-09-13T01:59:58.000Z","dependencies_parsed_at":"2022-09-10T20:22:50.387Z","dependency_job_id":null,"html_url":"https://github.com/TooTouch/notionist","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TooTouch%2Fnotionist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TooTouch%2Fnotionist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TooTouch%2Fnotionist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TooTouch%2Fnotionist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TooTouch","download_url":"https://codeload.github.com/TooTouch/notionist/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137891,"owners_count":21053775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-29T00:07:10.286Z","updated_at":"2025-04-10T01:14:18.559Z","avatar_url":"https://github.com/TooTouch.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Notionist\n\u003e *Life is divided into before and after meeting Notion*\n\nThis is Notion collection extraction repository for people who use Notion. \n\nI saw `notion-py`, unofficial python API for Notion.so made by `jamalex`, and appreciated `jamalex`. Thanks to `notion-py`, I'm using Notion better. However, there is no table extraction function. I want to use my table contents in python without extracting zip file. Therefore, I made this repository. At first, this repo was for me, but now I want to share this repo for notion users. \n\nPlease contact me if you want to join this repo.\n\n# Quick Start\n\nYou can install this module entering `pip install notionist` in your command or bash.\n\n```\npip install notionist\n```\n\n# How to Use\n\n## 1. Get token_v2\n\nFirst of all, you need `token_v2` to use this module. You can find you token_v2 in your cookies after enterting your id and passward to Notion as follows. \n\n`F12 (User Defined Key) \u003e Application \u003e Cookies \u003e https://www.notion.so \u003e token_v2`\n\n![token_v2](https://user-images.githubusercontent.com/37654013/83939185-d2a48b80-a815-11ea-8a77-11465e01920d.JPG)\n\n## 2. Make a table in notion\n\nWhen you make a table in notion, you can copy your table link as follows (If you work in web, you can use url).\n\n**TODO:** Only particular types such as Number, Text, Multi-select, and Select can be extracted from notion. I will try others as soon as possible.\n\n![table](https://user-images.githubusercontent.com/37654013/83939246-72fab000-a816-11ea-9894-8cd5e3d729c1.JPG)\n\n## 3. Using CollectionExtract\n\n```python\nfrom notionist import collection_api\n\ntoken_v2 = 'YOUR token_v2'\nextraction = collection_api.CollectionExtract(token_v2=token_v2)\n\nurl = 'https://www.notion.so/tootouch/ae60f9946dc54de78fbd4850ccf48b40?v=9d07e70306b2498eb82805b83f882140'\nextraction.table_extract(url)\n```\n\nTags |number|    text |Name\n---|---|---|---\n0    |A     | 1  | apple    |1\n1    |B     | 2  |banana    |2\n2    |C     | 3  |orange    |3\n\n\n# TODO \n\n- [ ] Extract other types in table \n- [ ] Plotting based on table data in Notion page","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftootouch%2Fnotionist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftootouch%2Fnotionist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftootouch%2Fnotionist/lists"}