You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is currently no way to specify the language per title.
So I think your best course of action is splitting the requests by language and sending these separately.
If we were to implement a solution for this we would have to do the same because every language has a different api endpoint.
The english wiki can answer things about the french wiki.
Indeed, makes perfect sense, @wvanderp. We'll do it that way.
Suggestion: it might be a good idea to provide a bundler of requests in wtf_wikipedia that would take any long list of targets and their languages and group them
by max size (default 5 or configurable)
by language
I think it still fits the scope of this project because it would make it easier for users to just make their list of wanted Wikimedia items without having to worry about in what batches are they palatable for the given endpoint.
It's recommended (cf https://github.com/spencermountain/wtf_wikipedia#good-practice) to bundle several requests into one, like
wtf.fetch(['Royal Cinema', 'Aldous Huxley'], 'en')
However, this assumes all such requests are for articles in one language.
Is there a recommended way of specifying several articles with their languages for the group fetch?
The text was updated successfully, but these errors were encountered: