Answer to Question #246785 in Python for saksham

Question #246785
Python program to find value of bitcoin in rupees with daily update values
1
Expert's answer
2021-10-05T23:14:01-0400
from bs4 import BeautifulSoup as BS
import requests
def obtain_price(link):
    info = requests.get(link)
    soup = BS(info.text, 'html.parser')
    price = soup.find("div", class_ ="BNeawe iBp4i AP7Wnd").text
    return price
   
link = "https://www.google.com /search?q = bitcoin + price"#link to bitcoin price
price = obtain_price(link)
print(price)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS