분류 전체보기
-
-
AttributeError: 'module' object has no attribute 'WebClient'IT 2020. 7. 8. 11:01
client = slack.WebClient(token='xoxb-') response = client.files_upload( channels="#general", file='/home/onone/onone.png', title='capture1.png', filetype='capture1.png' ) assert response["ok"] ↓ 변경 import requests url = '' files = {'file': open('/home/one.png, 'rb')} r = requests.post(url, files=files) r.text
-
파이썬 슬랙 파일 업로드 Python slack file uploadIT 2020. 7. 8. 10:33
import requestsurl = ''http://google.ca”files = {'file': open('/home/one.png, 'rb')} r = requests.post(url, files=files)r.text 슬랙 설정 https://api.slack.com/methods/files.upload/testfiles.upload method | SlackView another...api.slack.com files.upload 설정을 하고 url 입력 값을 파이썬에 넣는다
-
ImportError: No module named requests ImportError: No module named bs4 ImportError: No module named selenium UbuntuIT 2020. 7. 7. 15:23
Ubuntu 16.04.4 LTS ImportError: No module named requests #apt-get install python-requests ImportError: No module named bs4 #apt-get install python3-bs4 #apt-get install python-bs4 ImportError: No module named selenium #apt-get install python-selenium