"AttributeError: ResultSet object has no attribute 'text'. You're probably treating a list of elements like a single element. Did you call find() when you meant to call find_all()?" \u6b64\u9519\u8bef\u662f\u7531\u4e8e\u4f60\u628a\u4e00\u4e2a\u5217\u8868\u7684\u5143\u7d20\u5f53\u4f5c\u4e00\u4e2a\u5355\u72ec\u7684\u5143\u7d20\u6765\u5904\u7406\u6240\u5f15\u8d77\u7684\u3002\u53ef\u80fd\u662f\u4f60\u5728\u8c03\u7528\u201cfind()\u201d\u65f6\u672c\u5e94\u8c03\u7528\u201cfind_all()\u201d\u3002

AttributeError: ResultSet object has no attribute 'text' 解决方法 - Python爬虫错误分析

原文地址: https://www.cveoy.top/t/topic/qfzS 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录