dataabc / weibo-search

获取微博搜索结果信息,搜索即可以是微博关键词搜索,也可以是微博话题搜索
1.7k stars 372 forks source link

TypeError: expected str, bytes or os.PathLike object, not NoneType #65

Open WXONE opened 3 years ago

WXONE commented 3 years ago

Traceback (most recent call last): File "D:/weibo/spiders/search.py", line 37, in class SearchSpider(scrapy.Spider): File "D:/weibo/spiders/search.py", line 43, in SearchSpider if not os.path.isabs(keyword_list): File "D:\anaconda3\lib\ntpath.py", line 63, in isabs s = os.fspath(s) TypeError: expected str, bytes or os.PathLike object, not NoneType 报错内容如上,请问如何解决

dataabc commented 3 years ago

keyword_list应该是关键词列表或文件路径,可能是这个参数错了,改成list的形式就可以了。