crawlProject icon indicating copy to clipboard operation
crawlProject copied to clipboard

【instagram代码报错】:TypeError: exceptions must derive from BaseException

Open Qzy568 opened this issue 7 months ago • 0 comments

【instagram代码报错】:file_path:crawlProject/进阶篇/基础综合/Instagram/downloader.py Traceback (most recent call last): File "/Users/qiaozheyu/Code/crawlProject/进阶篇/基础综合/Instagram/downloader.py", line 87, in get_userInfo data = resp['data']['user'] ~~~~^^^^^^^^ KeyError: 'data'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/qiaozheyu/Code/crawlProject/进阶篇/基础综合/Instagram/downloader.py", line 235, in item = INS.get_userInfo('renebaebae') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/qiaozheyu/Code/crawlProject/进阶篇/基础综合/Instagram/downloader.py", line 89, in get_userInfo raise 'Could not get user information...' TypeError: exceptions must derive from BaseException

Qzy568 avatar Jul 16 '24 16:07 Qzy568