Git Product home page Git Product logo

arxivbot's Introduction

arxivbot

하루에 한번씩 arXiv에서 원하는 field (cs.CL 등) 의 논문을 slack message로 보내주는 코드입니다. openai chatgpt 를 활용해 논문 abstract의 3줄 요약을 기본으로 함께 제공하고 있습니다.

Usage

  1. Install requirements
pip install -r requirements.txt
  1. Define WORKSPACES in settings.py
WORKSPACES = [
    {
        'workspace': '{workspace}',
        'allowed_channel': '{channel_name}',
        'allowed_channel_id': '{channel_id}',
        'slack_token': "{app_slack_token}",
        'fields': ["{arxiv_field}",]
    },
]

Example

WORKSPACES = [
    {
        'workspace': 'ai-research-kr',
        'allowed_channel': 'nlp-research',
        'allowed_channel_id': 'X000XXXXX0X',
        'slack_token': "xxxx-1234567890-1234567890123-X0xx0x0xxXXxxxxXx0x0x0XX",
        'fields': ["cs.CL", "cs.IR"]
    },
]
  1. Define OPENAI_API_KEY in settings.py
OPENAI_API_KEY = "eeve-is-llm-of-the-year"
  1. Make slack bot and check api permissions & event subscriptions
  • https://api.slack.com/apps?new_app=1
  • The bot need to subscribe 'app_mention' event and get 'app_mentions:read', 'channels:history', 'chat:write', 'groups:history', 'im:history', 'mpim:history' OAuth Scope.
  1. Invite the bot to your slack channel

  2. Launch and enjoy

python main.py

arxivbot's People

Contributors

hist0613 avatar nhyha avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.