Skip to content
This repository has been archived by the owner on Sep 18, 2022. It is now read-only.

Latest commit

 

History

History
26 lines (16 loc) · 1.08 KB

README.md

File metadata and controls

26 lines (16 loc) · 1.08 KB

End of Year Countdown


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



🦾 How does it work?

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.