新闻测试
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user