Automatically Update NLP Papers Daily using Slackbot (ref: Vincentqyw/cv-arxiv-daily, monologg/nlp-arxiv-daily)
- OpenAI API Key
- Slack Web hook url, channel id, and access token
- Please make a json file with your slack tokens and fill
sample_slack_key.json
file. ( Rename it if you want )
{
"SLACK": {
"WEB_HOOK_URL": "web_hook_url",
"CHANNEL": "your_channel",
"ACCESSED_TOKEN": "xoxb-accesse_token"
},
"TEST_SLACK": {
"WEB_HOOK_URL": "web_hook_url",
"CHANNEL": "your_test_channel",
"ACCESSED_TOKEN": "xoxb-accesse_token"
}
}
- Please write down your OpenAI API key and your workspace path in the .env file.
OPENAI_API_KEY=your_openai_key_starts_with_sk
WORKSPACE=repository_on_your_local
SLACK_TOKEN_FILE=your_slack_token_filename.json
- Install the required packages.
pip install -r requirements.txt
- Run !
python main.py