This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This script uses the Metaphor (https://metaphor.systems) API to fetch the latest research results for a query of choice. | |
Given the popularity of Slack as a communication channel, it also provides the option to forward this information | |
to Slack using a web hook URL. | |
Usage: | |
1. Set the environment variables METAPHOR_API_KEY and SLACK_URL | |
2. Create a python>=3.7 environment | |
3. Install dependencies: `pip install metaphor-python requests` | |
4. Run: `python metaphor-research-digest.py --days 7 --num-results 10 --publish-to-slack` |