Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- r = requests.get('https://api.coindesk.com/v1/bpi/currentprice.json').json()["bpi"]["USD"]["rate"]
- print(r)
Advertisement
Comments
-
- https://www.reddit.com/r/cs50/comments/ycdlkx/how_to_use_the_requests_function_in_python/
Add Comment
Please, Sign In to add comment
Advertisement