Get Bit Coin price in real time using Python Last Updated : 28 Apr, 2025 Summarize Comments Improve Suggest changes Share Like Article Like Report In this article we will see how we can get the current price of the bit coin. Bitcoin is a cryptocurrency. It is a decentralized digital currency without a central bank or single administrator that can be sent from user to user on the peer-to-peer bitcoin network without the need for intermediaries. Modules required and Installation: Requests : Requests allows you to send HTTP/1.1 requests extremely easily. There’s no need to manually add query strings to your URLs. pip install requests Beautiful Soup: Beautiful Soup is a library that makes it easy to scrape information from web pages. It sits atop an HTML or XML parser, providing Pythonic idioms for iterating, searching, and modifying the parse tree. pip install beautifulsoup4 Explanation – We have the google search URL of the bit coin price from that we have scrape the price of the bitcoin in Indian rupees and stored it in a variable, which we further print it. Python3 # importing libraries from bs4 import BeautifulSoup as BS import requests # method to get the price of bit coin def get_price(url): # getting the request from url data = requests.get(url) # converting the text soup = BS(data.text, 'html.parser') # finding meta info for the current price ans = soup.find("div", class_ ="BNeawe iBp4i AP7Wnd").text # returning the price return ans # url of the bit coin price url = "https://www.google.com / search?q = bitcoin + price" # calling the get_price method ans = get_price(url) # printing the ans print(ans) Output : 520, 106.95 Indian Rupee Comment More infoAdvertise with us Next Article Get Bit Coin price in real time using Python R rakshitarora Follow Improve Article Tags : Python Python-BS3 Web-scraping Python web-scraping-exercises Practice Tags : python Similar Reads Get Silver and Gold Price in Tkinter Using Python Prerequisite: BeautifulSoup, requests, tkinter, datetime In this article, we are going to discuss how to get Gold and Silver Price in India Using Python in Tkinter. There is a variation in price with time to time, price of gold and silver is moved by a combination of supply, demand, and investor beh 4 min read Application to get live USD/INR rate Using Python In this article, we are going to write a python scripts to get live information of USD/INR rate and bind with it GUI application. Modules Required:bs4: Beautiful Soup is a Python library for pulling data out of HTML and XML files. Installation: pip install bs4requests: This module allows you to send 3 min read Python | Real time currency converter using Tkinter Prerequisites : Introduction to tkinter | Get the real time currency exchange ratePython offers multiple options for developing GUI (Graphical User Interface). Out of all the GUI methods, tkinter is the most commonly used method. It is a standard Python interface to the Tk GUI toolkit shipped with P 4 min read Build Fuel Price Tracker Using Python In this modern-day lifestyle, fuel has become a necessity for all human beings. It is a base for our life-style. So, we are going to write a script to track their price using Python. Modules Needed bs4: Beautiful Soup(bs4) is a Python library for pulling data out of HTML and XML files. This module d 3 min read Get current time in milliseconds using Python In this article, we will get the time in milliseconds using Python. Here, we are using two inbuild modules of Python that is Datetime module and the Time Module to get the time in milliseconds. Get time in milliseconds using the DateTime module To get the time in milliseconds we used the DateTime mo 1 min read Like