・ <Slack> Write a function to notify Slack so that it can be quoted at any time (Python)

Conclusion

Conclusion


#Define Slack
slack_url = "https://hooks.slack.com/services/XXXXXXXXXX"
slack = slackweb.Slack(url=slack_url)

#Define a message
message = "hello!"

#Send a message
slack.notify(text=message))

Recommended Posts

・ <Slack> Write a function to notify Slack so that it can be quoted at any time (Python)
I want to create a priority queue that can be updated in Python (2.7)
Moved Raspberry Pi remotely so that it can be LED attached with Python
I made a familiar function that can be used in statistics with Python
How to install a Python library that can be used by pharmaceutical companies
A module that makes it easier to write Perl-like filter programs in Python fileinput
It would be wise to write like boolean and "A" or "B" [Python] [But]
[Python] How to write a docstring that conforms to PEP8
A mechanism to call a Ruby method from Python that can be done in 200 lines
Install Mecab and CaboCha on ubuntu16.04LTS so that it can be used from python3 series
How to set up a simple SMTP server that can be tested locally in Python
I made a function to crop the image of python openCV, so please use it.
[Python] A program to find the number of apples and oranges that can be harvested
How to write a metaclass that supports both python2 and python3
A python beginner tried to intern at an IT company
Write a script in Shell and Python to notify you in Slack when the process is finished
I tried to expand the database so that it can be used with PES analysis software
[Django] A brief summary of the log output function so that even beginners can understand it.
I made a shuffle that can be reset (reverted) with Python
[Python3] Define a decorator to measure the execution time of a function
[python] I made a class that can write a file tree quickly
How to write a Python class
[Python] Code that can be written with brain death at the beginning when scraping as a beginner
[Python] I made a function that can also use regular expressions that replace character strings all at once.
I created a template for a Python project that can be used universally
[Python] A program that finds a pair that can be divided by a specified value
[Python] I made a decorator that doesn't seem to have any use.
How to make a rock-paper-scissors bot that can be easily moved (commentary)
I tried to make a calculator with Tkinter so I will write it
[Introduction to Python] How to write a character string with the format function
Get a datetime instance at any time of the day in Python
Python: I want to measure the processing time of a function neatly
[Python3] Code that can be used when you want to cut out an image in a specific size
If you want to make a Windows application (exe) that can be actually used now using only Python
[Python3] Code that can be used when you want to change the extension of an image at once
Send a message from Python to Slack
Call the python debugger at any time
A memo for making a figure that can be posted to a journal with matplotlib
A python beginner tried to intern at an IT company [Day 2 chatbot survey]
Atcoder Beginner Contest A, B Input summary Python that tends to be a problem
A python beginner tried to intern at an IT company [Day 1 development process]
[Python] The movement of the decorator that can be understood this time ② The decorator that receives the argument
I tried to publish my own module so that I can pip install it
A solution to the problem that the Python version in Conda cannot be changed
I tried to create a class that can easily serialize Json in Python
I made a tool to notify Slack of Connpass events and made it Terraform
Since python is read as "Pichon", it can be executed with "Pichon" (it is a story)
[Python] Concatenate a List containing numbers and write it to an output file.
Let's look at a differential equation that cannot be solved normally in Python
Read the image posted by flask so that it can be handled by opencv
It can be achieved in 1 minute! Decorator that caches function execution results in memcached
A program that sends a fixed amount of mail at a specified time by Python