This project retrieves cryptocurrency data from the CoinMarketCap API and stores it in a Notion database. It allows users to keep track of cryptocurrency prices and other relevant information directly in their Notion workspace.
- Fetch real-time cryptocurrency data from CoinMarketCap.
- Store and update data in a Notion database.
- Easy to set up and run with Python.
-
- Go to the CoinMarketCap API website.
- Sign up for an account if you don't have one.
- After logging in, navigate to the API section and create a new API key.
- Copy your API key for later use.
-
- Go to Notion Developers.
- Click on "New Integration".
- Fill in the required details (name, associated workspace, etc.).
- Once created, you will receive an Integration Token. Copy this token for later use.
-
- Open the Notion page that contains the database you want to integrate.
- Click on the "Share" button in the top right corner.
- In the "Invite" section, search for your integration by name and select it.
- Make sure to give it the necessary permissions (e.g., read, write).
Clone the repository to your local machine:
git clone https://github.com/yuzaiakira/coinmarketcap-to-notion.git
cd ./coinmarketcap-to-notion/
-
- Rename a
sample.env
file to.env
file in the root of your project. - Fill the following lines to the .env file:
- Rename a
I_TOKEN= Notion Integration Token
DATABASE_ID= Notion Database ID
COINMARKETCAP_KEY= CoinMarketCap API Key
You can install the required libraries using pip:
pip install -r ./requirements.txt
Run the script to fetch cryptocurrency data and store it in your Notion database:
python main.py
I hope you enjoy using this project :)