标签:space ons tps tar err world strong 使用 code
Web Scraping爬虫 for Mac urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)>
Solution: if 1) does not work, then try to use 2). Reference is here.
1)
pip install --upgrade certifi
2)
open /Applications/Python\ 3.6/Install\ Certificates.command
Solution:
>>> ‘ hello world!‘.lstrip() ‘hello world!‘
Web Scraping爬虫
看网页编码方式( 一般为“utf-8”)Solution: F12功能键,即可使用开发者工具,在窗口console标签下,键入 "document.charset" 即可查看网页的编码方式
[Python] Frequently used method or solutions for issues
标签:space ons tps tar err world strong 使用 code
原文地址:https://www.cnblogs.com/Johnsonxiong/p/9968560.html