EDCD / EDMarketConnector

Downloads commodity market and other station data from the game Elite: Dangerous for use with all popular online and offline trading tools.
GNU General Public License v2.0
988 stars 155 forks source link

PLUGINS: Document `timeout_session.py` and use of `config.user_agent` #1684

Closed Athanasius closed 1 year ago

Athanasius commented 1 year ago

Someone brought up that EDMC plugins might be using the default requests User Agent string, which isn't helpful when trying to determine what is causing traffic.

There's already timeout_session.py to quickly get a requests session object with a timeout set, and it uses config.user_agent.

Ideally all plugins would not only use that, rather than requests session creation directly, but also then tweak the User Agent to append, e.g. (plugin EDMC-Canonn) to it.

Athanasius commented 1 year ago

Done and in develop.