Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Code parsing the price We put
two libraries
pip3 install requests
pip3 install pyquery
import requests
from pyquery import PyQuery
r = requests.get("https://www.coindesk.com/price/bitcoin")
html = PyQuery(r.text)
price = html.find(".price-large").text()
print(price)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question