Been working on some fun Notion hacks recently using Notion-Py (like Notion x Sheets and Notion x Stocks) and thought that it would be fun to be able to read my news in Notion! Thus an idea was born.
-
Get your Notion V2 Token by visiting your Notion page from a browser and copy the token_v2 Cookie. Replace
<YOUR_NOTION_TOKEN_V2>
with the cookie. -
Make a new empty Notion page and replace
<YOUR_NOTION_PAGE_LINK>
innews.py
with the link of the new page. -
And you should be good to go! Now just run
python news.py
and your news will update when the script starts, and then it will continue to update every 6 hours.
- Make the source + author gray in color (limited by Notion library)
- Add option to hard refresh news via Notion trigger
- Make images 33% the width (after ColumnList Block has attribute available)
If you want to help, feel free to fork + make a pull request. Contact me on Twitter @aakashadesara before you work on something big so we do not have multiple people working on the same changes.
Special thanks to the folks working on the Notion Python API and to Jordan Singer for building a very handy lil.api to query for news.