考慮以下幾點:是否有可能用xpath在div下刮標籤?
<div class="name" data-starred-src="A Full Url"
data-non-starred-src="Some Other URL" data-reorderid="SomeID"
data-fbid="SomeID" id="SomeID" style="position: absolute;
margin-top: 0px; margin-left: 0px;">
這是與一羣不同屬性的div元素。我想刮的東西是「data-starred-src」下的網址
是否可以在不使用整個HTML的情況下進行刮取?
試圖使用xpath和HtmlAgilityPack來做到這一點。
'// DIV [@類= 「名稱」]/@數據出演-src' – splash58