네이버 금융 페이지에서 현재 주식 가격을 가져와 알려주는 슬랙봇
requirements :
Python version: 3.6+
- requests : send requests to websites
- slack_sdk : python slack SDK
- python-dotenv : read .env file
- beautifulsoup4 : crawl data from NAVER 금융
Get your own .env file
SLACK_TOKEN=xoxb-... #Bot User OAuth Access Token from Slack API
USER_AGENT=Mozilla/5.0... #Get your user-agent @ http://httpbin.org/user-agent
set stock codes @slack.py line 54
ex) codes = ["000660", 251270]
python slack.py #your slackbot sends current stock price every hour