728x90
import json, requests
import slack
def slackmessage():
api_url="webhook_url"
headers ={
"Content-type": "application/json"
}
data=json.dumps({
"attachments":[
{
"title" : 제목,
"color":"#D00000",
"fields":[
{
"value":"코멘트 내용"
}
]
}
]
})
requests.post(api_url,headers=headers,data=data)
'selenium' 카테고리의 다른 글
Slack messge Send (files_upload) / WebClient 이용 (0) | 2023.03.07 |
---|---|
자동화 시 오류종류 (0) | 2023.01.30 |
Web 페이지 속도 (성능) (0) | 2022.10.14 |
[ERROR] stale element reference: element is not attached to the page document (0) | 2021.11.03 |
[Selenium] CSV 파일 key, value 값으로 읽기 (0) | 2020.05.15 |