IT
-
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?IT 2020. 7. 27. 15:11
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library? [root@localhost ~]# pip install html5lib DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 ..
-
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