Data Analysis with Python - Jupyter Notebooks Importing and Exporting Data

Tell us what’s happening:

Please help with the crypto link I am new to this topic and the link used in tutorial is not working .

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36

Challenge Information:

Data Analysis with Python - Jupyter Notebooks Importing and Exporting Data

what crypto link? the exercise links work

The link used to take data in video for jupyter notebooks importing and exporting data is showing 401 error when running on my own.

use the Notebooks on Github link below the video


How can I resolve this error.

you can’t, that link doesn’t work

Is there other link which I can use and practice the concept ?

you can get data from places like kaggle or notebooks linked below the videos

Hi all, I managed to get the code to work by using the Kraken API instead of the Cryptowatch one (as Kraken basically took over Cryptowatch from what I understand).

My code below:
def get_historic_price(symbol, exchange=‘kraken’, after=‘2018-09-01’):
url = ‘https://api.kraken.com/0/public/OHLC?pair=BTCUSD
resp = requests.get(url, params={
‘periods’: ‘3600’,
‘after’: str(int(pd.Timestamp(after).timestamp()))
})

print(after)
resp.raise_for_status()
data = resp.json()
df = pd.DataFrame(data['result'],['3600'], columns=[
    'CloseTime', 'OpenPrice', 'HighPrice', 'LowPrice', 'ClosePrice', 'Volume', 'NA'
])
df['CloseTime'] = pd.to_datetime(df['CloseTime'], unit='s')
df.set_index('CloseTime', inplace=True)
return df
print(df)