How to export database?
- Dominant language
- Python
- Stars
- 4.4k
- Forks
- 470
- PR merge metrics
- No merged PRs in 30d
Description
Hello @jamalex , thank you for creating notion API in python. I have successfully connected to the Notion client. My goal is simple, export the database to CSV. As per documentation, there are API for querying, filtering, sorting. But how do I export the whole database to CSV? Currently I click on the export button on the top right corner page.
```py
from notion.client import NotionClient
client = NotionClient(token_v2="...")
cv = client.get_collection_view("...")
result = cv.default_query().execute()
# As per documentation, there are API for querying, filtering, sorting. But how do I export the whole database to CSV? Currently I click on the export button on the top right corner page.
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the mentioned notion.client.NotionClient entry point, get_collection_view(...), and default_query().execute(); no files or tests are named. Determine how complete database export is intended to work, and consider the task done when the whole database can be reproducibly exported to CSV.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, database
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100