Python 3 Exchange Currency Converter Script to Scrape Live Rates of All Currencies in Terminal
55 views
Jun 3, 2025
Get the full source code of application here:
View Video Transcript
0:00
uh hello guys welcome to this video So
0:02
in this video I will show you a free
0:03
Python module which allows you to uh get
0:07
the rates of all the currencies in the
0:09
world You can basically make a currency
0:12
converter kind of an application using
0:14
this module So you can see we are
0:16
converting from United State dollar into
0:19
Indian rupees So we have if I execute
0:22
this Python script here you will
0:25
see it will exactly tell you the rate
0:27
here inside uh the Indian rupees 100 USD
0:31
So
0:32
8,526 So it's exactly scraping all the
0:36
live rate You can also crossverify as
0:38
well by typing this you will see
0:41
8,569 So it is exactly printing out the
0:44
correct rate So the module that we are
0:48
using is currency converter So if you
0:50
just type this on the module So it is
0:55
actually scraping the live rate using
0:58
web scraping For this you don't require
1:00
any sort of API key Simply install this
1:03
by executing this command I've already
1:05
installed it So after installing it it
1:08
becomes really easy You first of all
1:11
require this module from currency
1:14
converter dot main class We need to
1:16
import this class which is currency
1:19
converter And then we simply initialize
1:22
this class here currency converter After
1:26
that we specify which currency that we
1:29
want to convert by using this convert
1:32
method And here we can type here one And
1:36
here you can specify
1:39
USD and target currency So if you want
1:43
to convert this from United State dollar
1:46
to euro then you can print
1:50
out the actual
1:52
result So if you just see now uh it will
1:55
tell you the rate of $1 in euro which is
2:00
0.90 So you can cross verify it
2:06
You can see exactly it is round about
2:10
right So here you can just type any
2:12
currency GBP So you will see Great
2:15
Britain pound here you will see
2:20
0.75 INR which is for Indian rupees you
2:23
will see
2:25
85.26 AUD which is Australian dollar you
2:28
will
2:31
see So all the currencies are supported
2:34
guys you will see New
2:38
Zealand can build out a currency
2:41
converter kind of an application using
2:43
this module and uh it also has a bunch
2:47
of other methods as well So let's
2:49
suppose you want to
2:52
get all the currencies then it will
2:55
print out all the currencies that it
2:57
supports inside this array So USD
3:00
European you will see all the major
3:03
currencies are supported right
3:06
here So this is actually the module guys
3:09
You can definitely use it It's
3:11
completely free Install it and start
3:14
using it And thank you very much for
3:16
watching this video And also check out
3:18
my website freemediattools.com
3:21
uh which contains thousands of tools
#Currencies & Foreign Exchange
#Investing