An application that collects the latest articles from arxiv, summarizes them with chatGPT, and posts them to slack.
- Python >= 3.7
- arxiv == 1.4.3
- OpenAI Python Library == 0.27.2
- python-dotenv == 1.0.0
- Python Slack SDK == 3.20.1
-
Create the environment file.
Copy
.env.sample
to.env
and edit it.cp .env.sample .env
Fill in the following environment variables.
OPENAI_API_KEY
: OpenAI API keySLACK_API_TOKEN
: Slack bot API token
-
Create the argument file.
Copy
args.json.sample
toargs/
directory and edit it.cp args.json.sample args/your_args.json
Fill in the following arguments.
news_title
: the title of the newspost_channel
: the channel name to post the messagecategories
: array of arxiv categoriesmax_results
: the maximum number of papers to postfetch_results
: the number of papers to fetch from arxiv
-
Build and run the docker container.
Build the docker container.
cd paper-check-slack-bot (paper-check-slack-bot) docker-compose build
Run the docker container with custom argument file.
docker-compose run paper-check-slack-bot your_args.json