Hello all,
I want to get a usercontrib details of a wikisource user in given date range.
Trying this
https://ta.wikisource.org/wiki/Special:ApiSandbox#action=query&format=js... Shaila
if I give only ucstart, it works fine. adding ucend gives 0 result.
Need help on solving this.
Share your thoughts on how to solve this.
Thanks.
Thats not how those parameters work. You use either or, not both. You are either going forward or backwards thru the contribs based on which you use. You need to apply some logic on the application layer to filter the results to what you need.
On Wed, Nov 18, 2020 at 6:50 AM Shrinivasan T tshrinivasan@gmail.com wrote:
Hello all,
I want to get a usercontrib details of a wikisource user in given date range.
Trying this
https://ta.wikisource.org/wiki/Special:ApiSandbox#action=query&format=js... Shaila
if I give only ucstart, it works fine. adding ucend gives 0 result.
Need help on solving this.
Share your thoughts on how to solve this.
Thanks.
-- Regards, T.Shrinivasan
My Life with GNU/Linux : http://goinggnu.wordpress.com Free E-Magazine on Free Open Source Software in Tamil : http://kaniyam.com
Get Free Tamil Ebooks for Android, iOS, Kindle, Computer : http://FreeTamilEbooks.com _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
On 2020-11-18 12:56, John wrote:
Thats not how those parameters work. You use either or, not both. You are either going forward or backwards thru the contribs based on which you use. You need to apply some logic on the application layer to filter the results to what you need.
This is incorrect, you can use both 'ucstart' and 'ucend' in one query.
The contributions are listed in reverse chronological order (newest first), so your 'ucstart' and 'ucend' parameters also need to be reversed ('ucstart' is the newer timestamp, 'ucend' is the earlier). This works:
https://ta.wikisource.org/wiki/%E0%AE%9A%E0%AE%BF%E0%AE%B1%E0%AE%AA%E0%AF%8D...
Alternatively, you can choose to list the contributions in chronological order (earliest first) using 'ucdir=newer', in which case 'ucstart' and 'ucend' are opposite, like in your original query:
https://ta.wikisource.org/wiki/%E0%AE%9A%E0%AE%BF%E0%AE%B1%E0%AE%AA%E0%AF%8D...
வியா., 19 நவ., 2020, முற்பகல் 12:29 அன்று, Bartosz Dziewoński matma.rex@gmail.com எழுதியது:
The contributions are listed in reverse chronological order (newest first), so your 'ucstart' and 'ucend' parameters also need to be reversed ('ucstart' is the newer timestamp, 'ucend' is the earlier). This works:
https://ta.wikisource.org/wiki/%E0%AE%9A%E0%AE%BF%E0%AE%B1%E0%AE%AA%E0%AF%8D...
Alternatively, you can choose to list the contributions in chronological order (earliest first) using 'ucdir=newer', in which case 'ucstart' and 'ucend' are opposite, like in your original query:
https://ta.wikisource.org/wiki/%E0%AE%9A%E0%AE%BF%E0%AE%B1%E0%AE%AA%E0%AF%8D...
Wonderful.
This works very well.
How to add this info in the API documentation page? https://www.mediawiki.org/wiki/API:Usercontribs
Please add there with the samples. will help a lot.
Shrini
On 2020-11-19 17:14, Shrinivasan T wrote:
How to add this info in the API documentation page? https://www.mediawiki.org/wiki/API:Usercontribs
It's actually described on that page:
ucdir
In which direction to enumerate:
newer List oldest first. Note: ucstart has to be before ucend. older List newest first (default). Note: ucstart has to be later than ucend.
wikitech-l@lists.wikimedia.org