Aqua-Dream / Tieba_Spider

百度贴吧爬虫(基于scrapy和mysql)
397 stars 116 forks source link

mac + anaconda 配置环境和执行 #5

Closed congcong009 closed 6 years ago

congcong009 commented 6 years ago

仓主你好,

我在 anaconda 下配置了你提到的那几样插件(scrapy + mysqlclient + beautifulsoap),版本也高于你的要求,在spyder(python 3.6)中打开了项目,执行就报错,如下:

screen shot 2018-07-09 at 17 13 26

如果我切换到 iTerm2 中执行,得到的错误如下:

screen shot 2018-07-09 at 17 08 42

我的数据库 MySQL 是在 XAMPP 中运行,使用Navicat 查看数据库可以看到如下信息

screen shot 2018-07-09 at 17 16 12

那么我的配置文件是

screen shot 2018-07-09 at 17 20 47

请问,我现在的问题是什么原因造成的呢?百度了也没找到答案呢,感谢回复。

Aqua-Dream commented 6 years ago

您好! 请去掉config.json第5行最后一个字符,即讲

"草缸": "cg",

修改位

"草缸": "cg"

然后再试试。

congcong009 commented 6 years ago

感谢回复啊,调整了配置不行。我重新安装了原生的 MySQL for Mac,不适用 XMAPP 的集成容器,爬虫可以正常工作啦,数据库里看到趴下来的内容了,只是在运行的过程中,依然报的错误如下:

screen shot 2018-07-10 at 13 42 11
Aqua-Dream commented 6 years ago

这个问题已经更新解决了,请更新后再试试

congcong009 commented 6 years ago

咦你更新了哪个文件,log 没看到呢?

Aqua-Dream commented 6 years ago

git pull 即可

Aqua-Dream commented 6 years ago

请问问题是否已经解决?

congcong009 commented 5 years ago

解决了哈,十分感谢呢····后来忘回了,不好意思