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'
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'
第一次可以运行,但是下载了十几个视频之后就一直报错