kuaishou-crawler icon indicating copy to clipboard operation
kuaishou-crawler copied to clipboard

运行报错:AttributeError: 'NoneType' object has no attribute 'group'

Open bihaichaosheng1 opened this issue 4 years ago • 2 comments

Traceback (most recent call last): File "C:/mypythonfile/car_info/driving_attention_video/kuaishou-crawler/ks.py", line 28, in crawl() File "C:/mypythonfile/car_info/driving_attention_video/kuaishou-crawler/ks.py", line 22, in crawl crawler.crawl() File "C:\mypythonfile\car_info\driving_attention_video\kuaishou-crawler\lib\crawler.py", line 81, in crawl self.__crawl_user(uid) File "C:\mypythonfile\car_info\driving_attention_video\kuaishou-crawler\lib\crawler.py", line 122, in __crawl_user self.__crawl_work(dir, works[j], j + 1) File "C:\mypythonfile\car_info\driving_attention_video\kuaishou-crawler\lib\crawler.py", line 178, in __crawl_work v_url = re.search(pattern, html).group(1)+".mp4" AttributeError: 'NoneType' object has no attribute 'group'

第一次可以运行,但是下载了十几个视频之后就一直报错

bihaichaosheng1 avatar Sep 13 '20 07:09 bihaichaosheng1

你把请求的html打印出来看看,是不是提示要验证码,这个问题明显是被快手检测到了。

legolas-zeng avatar Sep 25 '20 01:09 legolas-zeng

出现这个问题后 手机分享出来的链接 就点不动了 无法操作

ccoQQQ avatar Jul 30 '21 08:07 ccoQQQ