python 爬取知乎图片
Posted jxlsblog
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python 爬取知乎图片相关的知识,希望对你有一定的参考价值。
SyntaxError: Non-UTF-8 code starting with ‘xbf‘ in file python-zhihu -v1.2.py on line 34, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
安装需要的模块
pip install requests
pip install PyQuery
pip show 命令检查模块是否安装成功(如图所示是成功的)
C:UsersaddictionDesktopzhihu-take>pip show requests Name: requests Version: 2.21.0 Summary: Python HTTP for Humans. Home-page: http://python-requests.org Author: Kenneth Reitz Author-email: [email protected] License: Apache 2.0 Location: c:usersaddictionappdatalocalprogramspythonpython37-32libsite-packages Requires: chardet, certifi, urllib3, idna Required-by:
----------------------------------------------------------
C:UsersaddictionDesktopzhihu-take>pip show PyQuery
Name: pyquery
Version: 1.4.0
Summary: A jquery-like library for python
Home-page: https://github.com/gawel/pyquery
Author: Gael Pasgrimaud
Author-email: [email protected]
License: BSD
Location: c:usersaddictionappdatalocalprogramspythonpython37-32libsite-packages
Requires: cssselect, lxml
Required-by:
以上是关于python 爬取知乎图片的主要内容,如果未能解决你的问题,请参考以下文章