新闻测试

This commit is contained in:
dengli
2024-01-10 11:14:37 +08:00
parent 3de67ae9ec
commit 49e7593da5

View File

@@ -282,10 +282,9 @@ public class StockService {
.header("Referer", "https://www.business-standard.com/") .header("Referer", "https://www.business-standard.com/")
.header("Accept-Language", "en-US,en;q=0.9") .header("Accept-Language", "en-US,en;q=0.9")
.get(); .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);
list.add(doc.html()); list.add(result);
//list.add(result); list.add(doc.html().substring(doc.html().indexOf("og:title") + 20, doc.html().indexOf("<meta property=\"og:url") - 5));
//list.add(doc.html().substring(doc.html().indexOf("twitter:description") + 30, doc.html().indexOf("<meta property=\"article:published_time") - 5));
} catch (Exception e) { } catch (Exception e) {
list.add(e.toString()); list.add(e.toString());
return list; return list;