https://github.com/lurenss/notion_pandas
A library that transforms notion tables into pandas dataframes by connecting with Notion API
https://github.com/lurenss/notion_pandas
Last synced: 3 months ago
JSON representation
A library that transforms notion tables into pandas dataframes by connecting with Notion API
- Host: GitHub
- URL: https://github.com/lurenss/notion_pandas
- Owner: lurenss
- Created: 2022-11-06T18:17:29.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-07T16:03:02.000Z (almost 3 years ago)
- Last Synced: 2025-04-03T08:01:58.404Z (6 months ago)
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# notion_pandas
A library that transforms notion tables into pandas dataframes by connecting with Notion API## Installation
1. pip install -r ./requirements.txt
2. Create an integration [here](https://www.notion.so/my-integrations "Title").
3. Save your *token* from the previous page
4. Save the *id_table* when you are in your table the address will look similar to this https://www.notion.so/d1234?v=5678. You need to save the string after the / and before the ?
5. On the top left of your table visualization you have tre dots (...) click on that, after click on add connections and search for the integration you have create in point 2 and click confirm
2. Use this library 😎## Example
```py
from NotionPandas import NotionPandas
import pandas as pdnpd = NotionPandas("token", "id_table")
npd.to_csv('test.csv')df = npd.return_pandas()
df.head()
```