conkw documentation - BingNewsGrabber

This is the news grabber. It relies on the rapid api bing news call.

Use cases

Usage

In 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.

Metrics:

For every news, where n goes from 0 to num.news_size-1:

Configuration

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.

Final notes

For reference, here is the playground for the api.