This post is mostly the equivalent of one of a previous post which initially was in bash.
I have had the need to send mutiple email messages which contains for each one specific URL, this message had to be sent to multiple recipients.
I have decided to look further into python in order to progressively move some of my bash scripts, using python instead.
Some scripts (initially in bash) that I have used to update MySQL content, so below some examples of mechanisms used in python.
I have written a little script which generate number for your next lotto ticket.
Schedule it in the crontab to get your number each day you do need it.