requests_html 报错

centos7  运行

session = requests_html.HTMLSession()

h = session.get(url)

# print(h.html)
h.html.render()

  报错:

raise BadStatusLine(line)
http.client.BadStatusLine: GET /json/version HTTP/1.1

 

安装依赖:

yum install pango.x86_64 libXcomposite.x86_64 libXcursor.x86_64 libXdamage.x86_64 libXext.x86_64 libXi.x86_64 libXtst.x86_64 cups-libs.x86_64 libXScrnSaver.x86_64 libXrandr.x86_64 GConf2.x86_64 alsa-lib.x86_64 atk.x86_64 gtk3.x86_64 -y


yum install ipa-gothic-fonts xorg-x11-fonts-100dpi xorg-x11-fonts-75dpi xorg-x11-utils xorg-x11-fonts-cyrillic xorg-x11-fonts-Type1 xorg-x11-fonts-misc -y

 

requests_html 报错

上一篇:webview访问URL


下一篇:如何制作图标字体(如何将svg转换为css可用的图标字体)