This program is to get stock info (ticker, no. of shares, current price) from robinhood account and note them in notion database.
1. Go to loginInfo.py and add your username, password and MFA code from robinhood account
2. Go to pyTion.py and add your tokenV2 from browser cookies and link to the database you want to add
3. Execute pyTion.py file and observe the Notion database
4. Optional - Execute loginInfo.py if you need OTP for Robinhood Account.
- Get dictionary with token as key and stock price as value from robinhood.py
- Login to notion using token and link to database
- Write stock information in the database
-
HTTPError - Invalid input
- Cause - Notion API has changed and large limit gets 404 error
- Solution - Change limit from 10,000 to 100 in client.py and store.py https://stackoverflow.com/a/66546826/17346473
-
get_collection_view method leads to HTTPError - Invalid input
- Cause - Some error in source code or Notion API
- Solution - Need to use venv with merger of pr #352 jamalex/notion-py#352
- Figure out table view and update specific cell
- Work with pages and gmail notes
- ......
https://shiva-acharya.super.site/projects/robinotion
Here's a walkthrough of implemented user stories:
GIF created with LICEcap for Windows
