Hi All
First time Ever doing web scraping...
I am wanting to extract USD to ZAR exchange rate
Any suggestions on how to get the correct element and change values...
Untitled.png![]()
Please Login or Register to view this content.
Hi All
First time Ever doing web scraping...
I am wanting to extract USD to ZAR exchange rate
Any suggestions on how to get the correct element and change values...
Untitled.png![]()
Please Login or Register to view this content.
Last edited by Sintek; 07-12-2020 at 09:29 AM.
Good Luck...
I don't presume to know what I am doing, however, just like you, I too started somewhere...
One-day, One-problem at a time!!!
If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
Also....Add a comment if you like!!!!
And remember...Mark Thread as Solved...
Excel Forum Rocks!!!
Using the URL you've given in your code, may be this;
![]()
Please Login or Register to view this content.
Last edited by Haluk; 07-12-2020 at 10:22 AM.
You are an absolute star...Thanks Haluk...
![]()
Please Login or Register to view this content.
You're welcome...
It would be faster if you use API. You can register at this site for free https://currencylayer.com/ then to get API Key Access from Dashboard
Then this code can be used
![]()
Please Login or Register to view this content.
< ----- Please click the little star * next to add reputation if my post helps you
Visit Forum : From Here
Fantastic...Thanks Yasser
You're welcome. Thanks for the rep. points.
@sintek;
If you don't have to use the URL that you have given in your first message, then more effective alternatives can be offered as YasserKhalil has given in his message #5
Another alternative is; to get "Live Data" from investing.com without the need of a Web API, where XMLHTTP library is used.
In VBE, add the reference "Microsoft HTML Object Library" from "Tools>> References" menu. Then, run the code below:
Note: For different currency-crosses, all you need is to change the string in red color below accordingly (such as USD/EUR)![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Last edited by Haluk; 07-13-2020 at 04:50 AM.
Thanks for all the options guys...
You're welcome...
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks