Twitter bot written in Python 🐍
Counting how many days and weeks there are left this year 📆
Was running on a Twitter account @EndOfYearCount
from February 1, 2020 to September 18, 2022
It gets info like current date, month, year, which year is next and so on. Then it calculates how many days and weeks there are till the end of the year.
If current day is Monday, start of a week, it will make a tweet which week number is starting and how many days and weeks there are left this year.
Special tweets are set for New Year and Christmas. There were more tweets but were removed, so the bot did not tweet too often.
For communication with Twitter I am using a Python library Tweepy, and for running the bot daily, a Scheduled Tasks feature on PythonAnywhere.