01AutoMonkey
01AutoMonkey

Reputation: 2809

How to get random Wikipedia articles of a specific category and grade?

How do I get random articles from a specific category, with a quality grade of GA or better?

The following works (but doesn't support grades): https://en.wikipedia.org/wiki/Special:RandomInCategory

Upvotes: 0

Views: 872

Answers (1)

Tgr
Tgr

Reputation: 28160

You will have to write your own tool for that. The publicly available database replica includes a random number for each page, you'll have to reimplement the RandomInCategory logic on top of that, with an extra condition for the page_assessments table thrown in.

Upvotes: 1

Related Questions