Closed strefethen closed 1 year ago
By default, the library will use the user agent get_URL_node.default_user_agent
set in Ajax.js. If you want to set another user agent, you can change CeL.wiki.query.get_URL_options
listed in query.js:
CeL.wiki.query.get_URL_options.headers['User-Agent'] = 'testbot/1.0';
Thank you!!
@kanasimi any timeline for an updated release to NPM?
I'm still testing new features, so please wait some days.
I can't seem to find a decent place to change the default User-Agent used in the library. Wikipedia has a User-Agent policy which calls for a specific User-Agent string and it would be great if there were an option to provide a custom User-Agent which was specific to the calling application vs. the wikiapi package.
Regards, Steve