Page MenuHomePhabricator

Add options to export as CSV, TSV and JSON
Closed, ResolvedPublic

Description

Requested at https://github.com/MusikAnimal/global-search/issues/6. These exports could be used for any number of things, but in particular Tourbot, which is used to semi-automate fixing of on-wiki JavaScript pages.

Event Timeline

MusikAnimal claimed this task.
MusikAnimal moved this task from Backlog to Done on the Tool-global-search board.

https://github.com/MusikAnimal/global-search/pull/7 deployed. Thanks for the fine suggestion!

I will work on documenting the API, but really it's just the same HTML routes except with &format=json (or csv, tsv, wikitext) appended to the URI. E.g. https://tools.wmflabs.org/global-search/?q=Foobar&namespaces=&format=json