Send Daily Push Notifications to Your Phone Using Python | Build A New Year’s Resolution BOT (fast)
Language:
In this tutorial, I will show you, how you can send daily push notifications to your smartphone using Python. We will be using the “Pushbullet API” to send the notifications. Afterwards, we are going to setup PythonAnywhere to run the script daily
📝 Resources:
Download the Python Code and files used in the tutorial here:
Download Here
Further Links:
- Pythonanywhere: https://www.pythonanywhere.com/
- Pushbullet: https://www.pushbullet.com/
- Pushbullet Python Library: https://pypi.org/project/pushbullet.py/
👩💻 Source Code:
from pushbullet import Pushbullet API_KEY = "YOUR_API_KEY" filename = 'resolution.txt' with open(filename, mode='r') as f: text = f.read() pb = Pushbullet(API_KEY) push = pb.push_note("This is the title", text)