2014-02-12 24 views
0

如何只下載android中的部分html頁面?如何下載只有部分html頁面

這裏是XPATH:

//*[@id="container"]/div/div[2]/div/div/div[1]/div/section[1]/article 

這部分結構

<article class="post news" > 
    <some content here> 
</article> 
+0

如果您只是下載HTML,您可以嘗試處理信息並僅返回此部分,但不是您要求的內容,但它是一種快速解決方案 – GhostDerfel

+0

您可以通過符號閱讀頁符號並在符號停止匹配後停止閱讀你的x路徑表達式。但是它比下載完整頁面更復​​雜,然後才應用x路徑分析器。 – vorrtex

回答

0

//*[@id="container"]/div/div[2]/div/div/div[1]/div/section[1]/article[@class="post news"] 

工作?

+0

你能給我更多關於我應該如何下載它的信息嗎? – pavelartlover

相關問題