Links

Get CDS

Tags: #boursorama #finance #snippet #dataframe
Author: Jeremy Ravenel​

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)
Last modified 1mo ago