我想獲取該網站的產品說明: https://www.real.de/product/346010948/ ?id_item_promotion=620332我想我需要但我不知道如何解析它。這是我的解析代碼@Overridepublic Product getDescriptionByReal(Product product) { String completeUrl = "https://www.real.de/product/" + product.getPlattformProductId() + "/"; try { Document document = Jsoup.connect(completeUrl).get(); Elements description = document.select("div#prodct-data"); product.setDesc(description.text()); return product; } catch (IOException e) { product.setDesc(e.getMessage()); return product; }}如果我嘗試“document.select(“div.rd-product-description__text”);” 或“document.select(“div#prodct-data”)”我什么也得不到,如果我將其更改為“document.select(“div”);我得不到我想要的數據。
- 0 回答
- 0 關注
- 117 瀏覽
添加回答
舉報
0/150
提交
取消