朝ゴミを出すのを忘れちゃう、今日が何のゴミの日かを忘れちゃう一人暮らし初心者(私みたいな)用に、朝Lineに今日は何のゴミを出せば良いのかを通知してくれるプログラムを実装してみました。 以下のプログラムをcronを用いて通知してほしい時間に定期実行することで、Lineに通知が届き、ゴミ出しを忘れることを防止できるはず、、、です。 import datetime import requests weekday = datetime.date.today().weekday() def send(message): url = "https://notify-api.line.me/api/notify" access_token = 'Your Access Token'#自身のアクセストークン(ページ下の記事参照) headers = {'Authorization': 'Bearer '