码迷,mamicode.com
首页 > 编程语言 > 详细

python 爬取知乎图片

时间:2019-02-27 17:41:04      阅读:223      评论:0      收藏:0      [点我收藏+]

标签:request   desktop   encoding   eth   har   starting   cal   data   select   

 

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:\Users\addiction\Desktop\zhihu-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: me@kennethreitz.org
License: Apache 2.0
Location: c:\users\addiction\appdata\local\programs\python\python37-32\lib\site-packages
Requires: chardet, certifi, urllib3, idna
Required-by:
----------------------------------------------------------

C:\Users\addiction\Desktop\zhihu-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: gael@gawel.org
License: BSD
Location: c:\users\addiction\appdata\local\programs\python\python37-32\lib\site-packages
Requires: cssselect, lxml
Required-by:

 

python 爬取知乎图片

标签:request   desktop   encoding   eth   har   starting   cal   data   select   

原文地址:https://www.cnblogs.com/jxlsblog/p/10445066.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!