Scripts and notebooks to maintain the Dune analysis page for the decentralized crypto news Kiwi News.
Create a virtualenv for Python:
python -m venv .venv
source .venv/bin/activate
pip install wheel
pip install -r requirements.txt
Download message data from a Kiwi News instance for analysis:
python dl_messages.py
This will create JSONL files in the data
directory. If there is already data, consider using the start index to avoid a new download:
python dl_messages.py --start 6100
Get active users per month:
python user_activity.py --limit 2023-11-30
Get the top stories per month:
python top_stories.py --limit 2023-11-30
The resulting files can then be uploaded to Dune.