Hi,
I have a imple .fsx file to load news article from nasdaq. I’m getting an error
The type provider ‘ProviderImplementation.HtmlProvider’ reported an error: Cannot read sample HTML from ‘https://www.nasdaq.com/symbol/ibm/news-headlines’: The ‘Value’=‘IBM,technology’ part of the cookie is invalid.
But this problem seems only to nasdaq, other site is okay. e.g. Search - MarketWatch
Here is my full code
#I "C:/Users/Marvin/.nuget/packages"
//#r "fsharp.data/3.0.0/lib/netstandard2.0/FSharp.Data.dll"
#r @"fsharp.data\3.0.0\lib\net45\FSharp.Data.dll"
open FSharp.Data
// https://www.nasdaq.com/symbol/ibm/news-headlines
// https://www.marketwatch.com/search?q=aapl
// Configure the type provider
type CompanyNewsHeadlines = HtmlProvider<"https://www.nasdaq.com/symbol/ibm/news-headlines">
let news = CompanyNewsHeadlines.Load("https://www.nasdaq.com/symbol/ibm/news-headlines")
Appreciate guidance and help.
Thanks!