Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

The bing.ini config file, located at /etc/squirro/bing.ini configures the workings of the Bing Provider.

Table of Contents

API Key

The Bing API key needs to be requested directly from Microsoft on the Azure Marketplace. It can then be configured in the section bing.

KeyUsageDefault
account_keyThe Bing News API key.(No default value)
root_urlAPI endpoint for the Bing News API.https://api.datamarket.azure.com/Bing/Search/

Source Manager

The source manager implements the polling behavior. The behavior is configured in the two sections source_manager and source_manager_web (for news and web sources respectively) with the following keys.

All values are JSON-encoded time delta objects and can contain the keys seconds, minutes, hours, days, weeks. To avoid thundering herd problems, there is some randomness applied to these values (+/- one fourth of the delay).

KeyUsageDefault for News
check_delayHow long after the first check and after errors the source is polled again. The delay is exponentially increased with each error.

{"minutes": 1}

max_error_delayThe maximum delay after errors.{"days": 3}
success_delayDelay when new items were successfully received. If there were no new items in a request, the check_delay is used instead.{"minutes": 15}
max_success_delayThe maximum delay when there are no errors.

{"hours": 12}

Example Configuration

[source_manager]
check_delay = {"minutes": 1}
max_error_delay = {"days": 3}
success_delay = {"minutes": 15}
max_success_delay = {"hours": 12}

[source_manager_web]
check_delay = {"days": 1}
max_error_delay = {"days": 7}
success_delay = {"days": 1}
max_success_delay = {"days": 3} 
  • No labels