Comments (5)
1 jigao ~/workspace/wenku_spider > python 百度文库.py File "百度文库.py", line 111 print(text,end='') ^ SyntaxError: invalid syntax 1 jigao ~/workspace/wenku_spider > python 百度文库.py https://wenku.baidu.com/view/9f23f4ecf605cc1755270722192e453611665b54.html File "百度文库.py", line 111 print(text,end='') ^ SyntaxError: invalid syntax
python的版本是3.x以上吗
from wenku_spider.
都有 我尝试了python3
% jigao ~
> python --version 4325ms
Python 2.7.15rc1
% jigao ~
> python3 --version
Python 3.6.7
% jigao ~
> python3 ~/workspace/wenku_spider/百度文库.py
Traceback (most recent call last):
File "/home/jigao/workspace/wenku_spider/百度文库.py", line 3, in <module>
from bs4 import BeautifulSoup
ModuleNotFoundError: No module named 'bs4'
from wenku_spider.
都有 我尝试了
python3
% jigao ~ > python --version 4325ms Python 2.7.15rc1 % jigao ~ > python3 --version Python 3.6.7 % jigao ~ > python3 ~/workspace/wenku_spider/百度文库.py Traceback (most recent call last): File "/home/jigao/workspace/wenku_spider/百度文库.py", line 3, in <module> from bs4 import BeautifulSoup ModuleNotFoundError: No module named 'bs4'
给python3的环境安装bs4库 pip install bs4
from wenku_spider.
可以下载 但是下载pdf生成的png很乱
你可以试一下这https://wenku.baidu.com/view/9f23f4ecf605cc1755270722192e453611665b54.html
吗? 效果如何?
from wenku_spider.
可以下载 但是下载pdf生成的png很乱
你可以试一下这https://wenku.baidu.com/view/9f23f4ecf605cc1755270722192e453611665b54.html
吗? 效果如何?
pdf效果是不好 以后有时间再更新
from wenku_spider.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wenku_spider.