新闻测试

This commit is contained in:
dengli
2024-01-10 10:20:39 +08:00
parent c7284e8081
commit c646988219

View File

@@ -281,7 +281,8 @@ public class StockService {
.header("Referer", "https://www.business-standard.com/")
.header("Accept-Language", "en-US,en;q=0.9")
.get();
result = doc.html().substring(doc.html().indexOf("articleBody") + 13, doc.html().indexOf(",\"author\":") - 1);
//result = doc.html().substring(doc.html().indexOf("articleBody") + 13, doc.html().indexOf(",\"author\":") - 1);
result = doc.html();
} catch (Exception e) {
return e.toString();
}