Python program that fetches today's holidays from nationaldaycalendar and formats into a text message to send to friends.
-
Python
-
BeautifulSoup: used to parse html retrieved from the website.
-
Emoji: used to convert text to emojis for the text message.
-
Pyperclip: used for copying to clipboard for each operating system.
-
-
git clone https://github.com/eric-mahoney/national-holidays.git
. -
Navigate to the directory that this repo was cloned to.
-
Install pipenv if you haven't already:
pip install pipenv
(orpip3 install pipenv
if using python3 alias in cli). -
Install all dependencies for the project:
pipenv install
.
-
Make sure you're in the directory that this was repo was cloned to.
-
Run the script by running
py Main.py
orpy3 Main.py
depending on your alias. -
The script should run and copy the contents of the holidays to your clipboard.
-
Paste this anywhere you'd like to share it with people: text, email, social media, etc.