A Python application that sends a notification of the price of Bitcoin (based on a tutorial published on realpython.com).
The application makes use of HTTP requests and sends them using the Python requests
package.
It also makes use of webhooks and connects them to external services, i.e., phone notifications and Telegram messages, by using the IFTTT ("if this, then that") web service that bridges the gap between different apps and devices.
get_latest_bitcoin_price()
Gets and returns the Bitcoin price from Coinmarketcap.com
post_ifttt_webhook(event, value)
Defines the payload send to IFTTT service, which is a POST request to the webhook URL.
format_bitcoin_history(bitcoin_history)
Formats the date of retrieval into a string: 'day.month.year hour:minutes'. It also reformats price logs after 5 entries.