自动将网页上的价格转换为其他货币 [英] Automatically Convert Prices on a Web Page to A Different Currency

查看:108
本文介绍了自动将网页上的价格转换为其他货币的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对自动加载网页时给定的价格从给定的货币转换为指定的货币的可能方法感兴趣.理想情况下,这种转换还可以利用当前汇率来给出有效价格.

I am interested in possible methods of automatically converting the prices given when a web page is loaded from the currency given to a specified currency. Ideally, the conversion would also make use of the current exchange rate to give valid prices.

例如,在我的特定情况下,我要转换此

For example, in my specific case, I would like to convert the prices given in Euros (€) on this web site to Sterling (£).

我正在考虑使用GreaseMonkey脚本进行这种转换,但是有人可以建议其他方法吗?

I am looking at using a GreaseMonkey script for this conversion, but can anyone suggest other methods?

谢谢MagicAndi.

Thanks, MagicAndi.

推荐答案

尝试使用API​​: http://thecurrencygraph.com

Try the API: http://thecurrencygraph.com

它使用地理位置脚本来检测用户所在的国家/地区,并通过该用户的本国货币来检测.然后使用最新汇率将您的价格转换为货币

It uses Geo Location scripts to detect the user's country and through that their native currency. It then converts your prices into their currency using the latest exchange rates

希望这会有所帮助!

W.

这篇关于自动将网页上的价格转换为其他货币的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆