oGsLP / kuaishou-crawler

As you can see, a kuaishou crawler
MIT License
181 stars 66 forks source link

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

Open bihaichaosheng1 opened 4 years ago

bihaichaosheng1 commented 4 years ago

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'

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

legolas-zeng commented 4 years ago

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

ccoQQQ commented 3 years ago

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