Getting Real-time exchange rates for currency - URLFETCH

I’m trying to get real-time currency exchange rates for 1 USD to KRW

To achieve this, I was hoping to urlfetch a google search result

shor url :

and hopefully, possible parse the following span class

< span class=“DFlfde SwHCTb” data-precision=“2” data-value=“1116.335”>1,116.34</ span>

to retrieve the data-value.

Can this be done?

$(eval try{a=$(urlfetch ★★★;${parseFloat(};}catch(e){Error!;})

Hey @cdtank!

We can’t exploit the output of a Google Search result, your best bet is to look for an API, I’m sure there are plently.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.