I want to get all the Financial Time news from a date I give. I found your API. I applied for an API key from the news site but mine is in the following folder: C:\Users\antoi\Documents\Programming\Tests\StockPredictions. So I modified the code that allows me to give my key fp = os.path.expanduser("~/.ft.key") with os.path.expanduser("~\Documents\Programming\Tests\StockPredictions\.ft.key") But it doesn't work. Indeed I changed the following: fp = os.path.expanduser("~/.ft.key") with os.path.expanduser("~\Documents\Programming\Tests\StockPredictions\.ft.key") but it didn't worked. I have the following error:
I want to get all the Financial Time news from a date I give. I found your API. I applied for an API key from the news site but mine is in the following folder:
C:\Users\antoi\Documents\Programming\Tests\StockPredictions
. So I modified the code that allows me to give my keyfp = os.path.expanduser("~/.ft.key")
withos.path.expanduser("~\Documents\Programming\Tests\StockPredictions\.ft.key")
But it doesn't work. Indeed I changed the following:fp = os.path.expanduser("~/.ft.key")
withos.path.expanduser("~\Documents\Programming\Tests\StockPredictions\.ft.key")
but it didn't worked. I have the following error: