我需要从网站获取数据"https://www.arbatunity.com/index.php",我想要网站右上角显示当前市场利润的数据。我需要一个可以更新的字符串值。
发布于 2020-12-04 01:23:38
使用JSoup库,这很容易:
Document doc = Jsoup.connect("https://www.arbatunity.com/index.php").get();
Elements elements = doc.select("#id_profit b");
String percent = ""
for (Element e : elements) {
percent = e.html();
}
//percent holds the String you're looking forhttps://stackoverflow.com/questions/65129507
复制相似问题