Page MenuHomePhabricator

Add short view for Wikipedia Search with pages names only
Closed, DeclinedPublic

Description

Hello. There are a lot of situations when we use Special:Search for bots' eyes only, and it is very unconvenient to create a result pages list without all the notice citations with relevant page lines. It needs copy paste each page to Excel, create formulae to recognize the page names, remove the rest, aggregate all and so on.
Could you, please, add a shortened mode to the Special:Search? When using it, we'll see the page names only, possibly 200 on every page in category tree format, until 50 pages (because search maximum is 10,000 pages), with ability to enlarge the limit to 5,000, as usual in such kind of pages.
Thank you very much in advance.

Event Timeline

Thanks, but I need a list, for bot or half automatic tool, not json or xml structure.

MaxSem subscribed.

Special:Search (just like anything else that outputs HTML instead of bot-readable formats) is for humans only. Bots should use the API.

@MaxSem, how exactly AWB, for example, can use API? Teach me, please.

AWB does use the API for everything it does, see the sources.

@MaxSem, I'm talking as AWB user, not developer. I need page names list to put it in makelist feature, and can't get it, as I know.

Maybe with a simple command line? (requires curl and jq):

curl -s 'https://en.wikipedia.org/w/api.php?action=query&format=json&list=search&srsearch=test&srprop=' | jq .query.search[].title

Will output:

"Test"
"Test cricket"
"Mantoux test"
"Test automation"
"Test card"
"Test (assessment)"
"Pregnancy test"
"Student's t-test"
"Coombs test"
"Flight test"

To build the API request you can use the api sandbox

AWB had an option to make a list from search results, last time I used it.

Thank you, but I want to get a simple solution, not a hack. I, as user, can't use command line, but it's irrelevant. I spoke about something simple.

Yes, @matmarex, ant it is broken, and AWB developers hope it will work in a couple of years.