getting start crawling with python easy peasy
Bumsu will design kakao application domain :blush:
In console, type python --version
In case you already downloaded the python but cannot execute it
check out the environment variables
you can check following link my version
check out the version then download proper file in the link below
download chromedriver
Slack :: Account and API Access Token
Slack API
Configure the access permission of your app
Hit the create button, Copy your access key and paste into token, which is variable name, in slack/bot.py
Shell
pip install -r requirements.txt
config/env.json
{
"SLACK_BOT_TOKEN" : "FOO",
"SLACK_DEFAULT_CHANNLER" : "BAR"
}
Shell
django-admin runserver
Or
python manage.py runserver
If commands don't work, check out the version of your python.
If you are working on Linux, you might be needed to add package repository, which is dead snake, before
using the install command of package manager
Q : PIP doesn't work well
A : First of all, check out the python version django has some dependency on it.
Q : PIP still doesn't work well :sob:
A : If you have multiple version of python without virtual environment, pip might not install
the package in the right version of python library. specify the version of it using manual command.
(any version >= 3.6)
python3.8 -m pip install -r requirements.txt
python3.7-m pip install -r requirements.txt
python3.6-m pip install -r requirements.txt
Q : Bot doesn't work
A : Make sure that you invited the bot first. If problem goes on, check out you have right API token,
event subscriber.
API 호출 함수 이름 : fnRefreshMealTypeList()
API 주소 : https://ssgfoodingplus.com/fmn101.do?goTo=todayMenuJson
데이터 원형 : mealId=&mealTypeCd=&storeCd=05600&cafeCd=01&menuDate=2020-01-22
{
"key" : null,
"mealTypeCd"=&
"storeCd" : 05600&
"cafeCd" : 01,
"menuDate" :
}