The problem lies with
Element table = doc.select("table[class=local_table nbu_rate]").first();
Note that css selectors for class names include the dot .
. Your selector should be
Element table = doc.select("table.local_table.nbu_rate").first();
Alternatively, only one class should do:
Element table = doc.select("table.local_table").first();
Edit:
Your second issue seems to be is with
Iterator<Element> ite = table.select("td[USD]").iterator();
The css selector "td[USD]"
will look for a <td>
element with an attribute called USD. This does not exist. You need to adapt your selector. USD is the inner HTML, not an attribute.
I guess you need to read the 3rd <td>
to get the number value. However, to be meaningful you probably need to know the currency too...