tr_list=self.driver.find_elements_by_xpath('//table[@class="hyreport-tabletl"]/tbody//tr')foriinrange(0,100):foriinrange(0,len(tr_list)):content=etree(tr_list[i]).xpath("string(//*[@class='pl20'])")source=etree(tr_list[i]).xpath('//td[@class="ellipsis"]/span/text()')size=etree(tr_list[i]).xpath('//td[5]/text()')report_time=etree(tr_list[i]).xpath('//td[6]/text()')print("获取内容为:下面打印的内容")Traceback(mostrecentcalllast):File"qimingpian.py",line115,inqimingpian().get_content()File"qimingpian.py",line92,inget_contentcontent=etree(tr_list[i]).xpath("string(//*[@class='pl20'])")TypeError:'module'objectisnotcallable
添加回答
举报
0/150
提交
取消