Links

Get CDS

Tags: #boursorama #finance #snippet #dataframe
Author: Jeremy Ravenel
Last update: 2023-04-12 (Created: 2021-05-09)
Description: This notebook provides a way to access and analyze CDS data from Boursorama.

Input

Import library

import pandas as pd

Variables

URL = "https://www.boursorama.com/bourse/taux/cds/"

Model

Get the CDS from URL

dfs = pd.read_html(URL)
df = dfs[0]

Output

Display result

df

Save as csv

df.to_excel(r"Get_CDS.csv", index=False)