카카오톡 학식봇 만들기(AWS Dynamo DB with lambda) - 10
import json import boto3 import crawling_INUmenu as im def lambda_handler(event, context): body = json.loads(event["body"]) typemenu_list = ["중식(백반)","중식(일품)","석식"] food_name = body["action"]["params"]["food_list"] user_id = body["userRequest"]["user"]["id"] # Date and index date_obj = json.loads(body["action"]["params"]["sys_date"]) date = date_obj["date"] date_tmp = int(date[5:].replace('-','')) diff_index = im.today_index + date_tmp - im.short_date # food list food_list = [] if