This is the news grabber. It relies on the rapid api bing news call.
net.pieroxy.conkw.webapp.grabbers.bingnews.BingNewsGrabberbingnewsIn order to use it, you need to:
To extract news from several countries, add more than once this grabber to your config file.
Note that the basic plan is limited to 1000 requests per month, which amounts roughly to a bit more than 1 request every hour. Note again that if you use several grabbers with the same token, they will all count against the same 1krq/month quota.
The default refresh rate has been set to once every 1 hour. Adjust this value as you see fit.
num.news_size The number of headlines returned.For every news, where n goes from 0 to num.news_size-1:
news_imageurl_n: The URL of the image associated to the headline.news_providerimageurl_n: The URL of the logo of the news provider.news_name_n: The content of the news.news_url_n: The URL to get more details on the news.Here is the sample config portion:
{
"implementation":"net.pieroxy.conkw.webapp.grabbers.bingnews.BingNewsGrabber",
"config": {
"ttl":"1h", // The time between two refreshes.
"countrycode":"fr", // To get French news.
"key":"your bing news rapidapi key here"
}
},
As this is a TimeThrottledGrabber, you can define ttl and errorTtl. See here for more details. The default ttl is 1 hour.
For reference, here is the playground for the api.