YuleZhang / JDComment_Spider

京东评论爬虫,包含对数据的采集、清洗、可视化、分析等过程,作为数据库课程设计项目

Home Page:https://yulezhang.github.io/2019/02/26/15JDComment-Spider/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

有问题请留言

YuleZhang opened this issue · comments

commented

你好,我想问下爬取过程中,爬取一会儿就报如下错误,请问该怎么解决呢

the error is  Expecting value: line 1 column 1 (char 0)
wating---

你好,我想问下爬取过程中,爬取一会儿就报如下错误,请问该怎么解决呢

the error is  Expecting value: line 1 column 1 (char 0)
wating---

京东可能加了一些频繁访问限制,使得request返回得到空页面,因此就会出现上述错误。程序中wating是采取的等待重试,也可以添加动态ip等其他反爬虫策略。