【发布时间】:2015-12-15 04:28:33
【问题描述】:
city = soup.select('a[href="/city/london d12"]')
上面的代码得到一个错误信息:
ValueError:不支持或无效的 CSS 选择器:“a[href=/city/london”
我想知道是否有解决方法或替代美味汤的方法?
<a title="London" href="/city/london d12">london</a>
【问题讨论】:
标签: python html beautifulsoup html-parsing