Hi, My name is Kenrick, I'm an Indonesian Wikipedia administrator trying to experiment things with MediaWiki API.
I am currently doing a project to list down the new articles using MediaWiki API with these parameters:
action = query list = recentchanges rctype = new rcshow = !redirect
But then this method also includes those articles which current revision is a redirect page.
Is there any way to perfectly list down new articles like Special:Newpages did?
Thank you.
On Mon, Nov 25, 2013 at 9:54 AM, Kenrick kenrick95@gmail.com wrote:
Hi, My name is Kenrick, I'm an Indonesian Wikipedia administrator trying to experiment things with MediaWiki API.
I am currently doing a project to list down the new articles using MediaWiki API with these parameters:
action = query list = recentchanges rctype = new rcshow = !redirect
But then this method also includes those articles which current revision is a redirect page.
Is there any way to perfectly list down new articles like Special:Newpages did?
Thank you.
I used those parameters and it excluded any pages that are currently redirects (regardless of whether they were redirects at the time the recentchanges row was created). That's what you were trying to do, right? You're saying it didn't exclude them?
Yup For example, I called
https://id.wikipedia.org/w/api.php?action=query&list=recentchanges&r...
there I can found an article named
Risman K. Umar, S.Sos., M.Si
which when I open it (with the oldid parameter, https://id.wikipedia.org/w/index.php?title=Risman%20K.%20Umar,%20S.Sos.,%20M...), it goes to the user page.
Thanks
On 26 November 2013 00:58, Nathan Larson nathanlarson3141@gmail.com wrote:
On Mon, Nov 25, 2013 at 9:54 AM, Kenrick kenrick95@gmail.com wrote:
Hi, My name is Kenrick, I'm an Indonesian Wikipedia administrator trying to experiment things with MediaWiki API.
I am currently doing a project to list down the new articles using MediaWiki API with these parameters:
action = query list = recentchanges rctype = new rcshow = !redirect
But then this method also includes those articles which current revision is a redirect page.
Is there any way to perfectly list down new articles like Special:Newpages did?
Thank you.
I used those parameters and it excluded any pages that are currently redirects (regardless of whether they were redirects at the time the recentchanges row was created). That's what you were trying to do, right? You're saying it didn't exclude them?
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
mediawiki-api@lists.wikimedia.org