reddit-saved-to-notion
A way to export your saved reddit posts and comments to a Notion table.Uses notion-sdk-py and praw for interacting with Notion and Reddit respectively.
Also writes your saved posts/comments into a csv file. The saved item is not updated in Notion if it is already present in the csv file.
Pre-requisties
- client_id and client_secret from Reddit. https://github.com/reddit-archive/reddit/wiki/OAuth2-Quick-Start-Example#first-steps
- Follow the instructions here to get your notion_secret and database_id.
- Import this notion template
Steps
- Recommended to run in a virtual environment
- If you have
poetry
installed, then executepoetry install
- Else run
pip install -r requirements.txt
- Rename
config_eg.ini
toconfig.ini
and fill in the values - From the root of the directory run,
python3 reddit-saved-to-notion/main.py