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

TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

Open twilight1024 opened this issue 2 years ago • 10 comments

stat: path should be string, bytes, os.PathLike or integer, not NoneType Traceback (most recent call last): File "D:\weibo-crawler-master4\weibo-crawler-master\weibo.py", line 1883, in get_pages self.write_data(wrote_count) File "D:\weibo-crawler-master4\weibo-crawler-master\weibo.py", line 1836, in write_data self.write_csv(wrote_count) File "D:\weibo-crawler-master4\weibo-crawler-master\weibo.py", line 1293, in write_csv self.csv_helper(result_headers, result_data, file_path) File "D:\weibo-crawler-master4\weibo-crawler-master\weibo.py", line 1297, in csv_helper if not os.path.isfile(file_path): File "D:\anaconda\lib\genericpath.py", line 30, in isfile st = os.stat(path) TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType 信息抓取完毕


twilight1024 avatar Apr 02 '23 17:04 twilight1024