yabosu / zhihu_crawler Goto Github PK
View Code? Open in Web Editor NEW使用python 3实现的一个知乎内容的爬虫,依赖requests、BeautifulSoup4。
License: MIT License
使用python 3实现的一个知乎内容的爬虫,依赖requests、BeautifulSoup4。
License: MIT License
D:\Files>python paqu.py
Traceback (most recent call last):
File "paqu.py", line 4, in
session = zh_crawler.get_login_session()
File "D:\Files\zhihu_crawler\zh_crawler.py", line 21, in get_login_session
login_result = session.post('http://www.zhihu.com/login/email', data=config, headers=defalut_headers).json()
File "C:\Users\lwz\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\models.py", line 892, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Users\lwz\AppData\Local\Programs\Python\Python36\lib\json_init_.py", line 354, in loads
return _default_decoder.decode(s)
File "C:\Users\lwz\AppData\Local\Programs\Python\Python36\lib\json\decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\lwz\AppData\Local\Programs\Python\Python36\lib\json\decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
json文件我也就把<>內填上了username和password,不知道为什么会报错啊
running build_ext
building 'lxml.etree' extension
error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).
mand "E:\Python34\python.exe -u -c "import setuptools, tokenize;file='C:
ers\huang\AppData\Local\Temp\pip-build-kl7tehu6\lxml\setup.py';exec(co
le(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), __
e__, 'exec'))" install --record C:\Users\huang\AppData\Local\Temp\pip-nfdydw9
ecord\install-record.txt --single-version-externally-managed --compile" faile
ith error code 1 in C:\Users\huang\AppData\Local\Temp\pip-build-kl7tehu6\lxml
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.