新闻测试
This commit is contained in:
@@ -282,9 +282,10 @@ 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);
|
||||
list.add(result);
|
||||
list.add(doc.html().substring(doc.html().indexOf("twitter:description") + 30, doc.html().indexOf("<meta property=\"article:published_time") - 5));
|
||||
//result = doc.html().substring(doc.html().indexOf("articleBody") + 13, doc.html().indexOf(",\"author\":") - 1);
|
||||
list.add(doc.html());
|
||||
//list.add(result);
|
||||
//list.add(doc.html().substring(doc.html().indexOf("twitter:description") + 30, doc.html().indexOf("<meta property=\"article:published_time") - 5));
|
||||
} catch (Exception e) {
|
||||
list.add(e.toString());
|
||||
return list;
|
||||
|
||||
Reference in New Issue
Block a user