import pandas as pd
import json
from pandas import json_normalize
data = '''
{
"technologies":
[
{ "Courses": "Spark", "Fee": 22000,"Duration":"40Days"},
{ "Courses": "PySpark","Fee": 25000,"Duration":"60Days"},
{ "Courses": "Hadoop", "Fee": 23000,"Duration":"50Days"}
],
"status": ["ok"]
}
'''
print(data)
import requests
import json
def get_bitcoin_price():
url = 'http://api.bitcoincharts.com/v1/weighted_prices.json'
response = requests.get(url)
data = json.loads(response.text)
return data['USD']['7d']
if __name__ == '__main__':
print(get_bitcoin_price())