python3xxx / weibo_spider

爬取微博内评论,获取评论内容和图片信息
295 stars 109 forks source link

运行comment.py文件会报错 #5

Open arrogant-create opened 4 years ago

renektonwu commented 4 years ago

加上你的cookie试一下

arrogant-create commented 4 years ago

还是没有用,错误结果如下 Traceback (most recent call last):   File "f:\VsCode\Docunmet\python\weibo\weibo_spider-master_comment\weibo_spider-master\weibo_comment.py", line 99, in <module>     resp = json.loads(resp.text)   File "C:\Users\dell\AppData\Local\Programs\Python\Python38-32\lib\json__init__.py", line 357, in loads     return _default_decoder.decode(s)   File "C:\Users\dell\AppData\Local\Programs\Python\Python38-32\lib\json\decoder.py", line 337, in decode     obj, end = self.raw_decode(s, idx=_w(s, 0).end())   File "C:\Users\dell\AppData\Local\Programs\Python\Python38-32\lib\json\decoder.py", line 355, in raw_decode     raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 2 column 3 (char 3)

------------------ 原始邮件 ------------------ 发件人: "python3xxx/weibo_spider" <notifications@github.com>; 发送时间: 2020年7月18日(星期六) 晚上6:58 收件人: "python3xxx/weibo_spider"<weibo_spider@noreply.github.com>; 抄送: "握不住的沙♬就扬了它"<1246051548@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [python3xxx/weibo_spider] 运行comment.py文件会报错 (#5)

加上你的cookie试一下

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.