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