大佬们看看,为什么post_node没有css属性,怎么解决
源代码如下:
post_nodes = response.css("#archive .floated-thumb .post-thumb a").extract()
for post_node in post_nodes:
image_url = post_node.css("img::attr(src)").extract_first("")
错误:
image_url = post_node.css("img::attr(src)").extract_first("")
AttributeError: 'str' object has no attribute 'css'