I have always been able to run this line of code without issues to return the table from the Bank of England as a dataframe:
import pandas as pd
pd.read_html('https://www.bankofengland.co.uk/boeapps/database/Rates.asp?Travel=NIxIRx&into=GBP')[0]
However, it now returns the error:
HTTPError: HTTP Error 500: Internal Server Error
I'm pretty sure this is because of newly implemented cookie requirements on the website (see image). Is there still a way to access this with read_html(). I couldn't find any questions related to read_html() and cookies, but this thread might help solve ( Cannot catch HTTP Error 500: Internal Server Error). I was hoping for a simple solution with the read_html() library, but I might have to use requests / beautifulsoup.
Can anyone help me return the table from that link as output? It might not be possible now with one line of code of read_html():
