有没有办法只使用html中的data属性来查找元素,然后获取该值?
例如,在html doc中使用此行:
<ul data-bin="Sdafdo39">
如何Sdafdo39通过在整个html doc中搜索具有该data-bin属性的元素来检索?
Sdafdo39
data-bin
html python beautifulsoup web-scraping
beautifulsoup ×1
html ×1
python ×1
web-scraping ×1