2019-09-06 19:46:25 +08:00
|
|
|
|
# 安装
|
|
|
|
|
##环境需求:python3.6+ / pip3
|
|
|
|
|
###Linux
|
2019-09-06 19:42:56 +08:00
|
|
|
|
```shell
|
|
|
|
|
git clone https://github.com/nyaasuki/DoubanBookSpider.git
|
|
|
|
|
cd ./DoubanBookSpider
|
|
|
|
|
python3 Spider.py
|
|
|
|
|
```
|
2019-09-06 19:46:25 +08:00
|
|
|
|
###Window
|
2019-09-06 19:42:56 +08:00
|
|
|
|
配置好环境后
|
|
|
|
|
下载并解压https://github.com/nyaasuki/DoubanBookSpider/archive/master.zip
|
|
|
|
|
使用cmd命令运行
|
|
|
|
|
```DOS
|
|
|
|
|
python path\DoubanBookSpider\Spider.py #path为文件存放路径
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
或者
|
|
|
|
|
|
|
|
|
|
__在CMD命令行中,输入 “python” + “空格”,即 ”python “;__
|
|
|
|
|
|
|
|
|
|
__将已经写好的脚本文件拖拽到当前光标位置,然后敲回车运行即可__
|
|
|
|
|
|
|
|
|
|
|
2019-09-06 19:46:25 +08:00
|
|
|
|
#重置程序
|
2019-09-06 19:42:56 +08:00
|
|
|
|
删除DoubanBookSpider目录下的Spider.db即可
|