Data Exploration & Machine Learning, Hands-on


"

Recommended free walkthrough, check it out and boost your career:


Boost your data science career

"









Resources


One Line of Code to Send Messages to a Discord Server


The Discord Pager





Here is a trivially simple way of using Discord webhooks to push messages to your phone. If you are looking for an easy way of getting alerts to your phone or laptop but don't want to mess around with SMTP and multi-auth, you're going to like this simple alternative.

1. Create a Discord account


Go to https://discordapp.com/ and sign up for an account if you don't already have one.

2. Create a Discord server



Create a Discord server



3. Go to server settings



Go to server settings



4. Go to Webhooks and create one



Go to Webhooks and create one



5. Copy the webhook



Copy the webhook



6. Run the code and page away!!


import json, requests 

def PagingDiscordServer(webhook_url, text_message): return requests.post(webhook_url, data=json.dumps({ "content": text_message }), headers={ 'Content-Type': 'application/json',}) 

PagingDiscordServer('--ENTER YOUR WEBHOOK FULL URL--', 'Hello from ViralML.com!!') 



Manuel Amunategui - Follow me on Twitter: @amunategui