我正在尝试使用 ChromeDriver 从以下 html 代码中提取值“/mva/library/20120730/93135a040s.gif”:
目前,我的代码:
is_black_white = driver.find_elements_by_xpath("//div[@class='aj cw cy db ImgCaptionCntnrHover']/img[@data-filterwithidind='True']")
x = is_black_white[0].get_attribute("title src")
print(x)
返回“无”。
我感觉我已经很接近了。任何帮助将非常感激!
谢谢!
慕田峪7331174
相关分类