I'm trying to scrape the web page to extract the bank rates, but facing some problems. The code is:
public class Main {
public static void main(String[] args) throws IOException {
Document doc = Jsoup.connect("http://www.banki.ru/products/currency/cash/usd/tyumen~/#bank-rates").get();
//this is what I'm trying to extract, but the block below "tr[]data-currencies-row" is generated by JavaScript
Elements elements1 = doc.select("tr[data-currencies-row]");
System.out.println(elements1.size()); //prints 0
//this block below works fine
Elements elements2 = doc.select("a[class^=font-bold]");
System.out.println(elements2.size()); //prints 3
}
}
How can navigate to "tr[data-currencies-row]" tags?