Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Wikimedia extracts API to retrieve hints #169

Open
goto-bus-stop opened this issue Jun 19, 2020 · 0 comments · May be fixed by #278
Open

Use Wikimedia extracts API to retrieve hints #169

goto-bus-stop opened this issue Jun 19, 2020 · 0 comments · May be fixed by #278

Comments

@goto-bus-stop
Copy link
Owner

goto-bus-stop commented Jun 19, 2020

Currently, hints are extracted from the rendered HTML for a wiki page using cheerio. But I just noticed that wikipedia has an "extracts" API:

https://en.wikipedia.org/w/api.php?action=query&prop=extracts&exchars=200&explaintext=true&format=json&titles=Donald%20Glover

https://en.wikipedia.org/w/api.php?action=query&prop=extracts&exchars=200&explaintext=true&format=json&titles=Kansas%20City,%20Missouri

They seem to generally be as good if not better than the results from our custom hint code.

This might also address #159 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant