gpt-3.5-turbo-0613· OpenAI
WildChat-4.8M (AI2)
Traceback (most recent call last): File "e:\桌面\spider\jfdaily.py", line 100, in <module>…
- User
Traceback (most recent call last): File "e:\桌面\spider\jfdaily.py", line 100, in artical = spider. getArticle() TypeError: getArticle() missing 3 required positional arguments: 'date', 'pageNo', and 'aid'
- Assistant
This error message indicates that the method
getArticle()in thespiderobject requires three positional arguments:date,pageNo, andaid. However, when the method is called on line 100 of thejfdaily.pyfile, these arguments are not provided.To fix this error, you need to pass the required arguments
date,pageNo, andaidwhen calling the methodgetArticle()on line 100. For example:artical = spider.getArticle(date_value, pageNo_value, aid_value)Make sure to replace
date_value,pageNo_value, andaid_valuewith the actual values you want to pass to the method.