use the api instead of scraping the wiki #3
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
He @jdlrobson 👋
Now that I know about the Wikipedia Summary API, I can toss out the unreliable HTML-scraping approach formerly used by this module. 🎉
Hitting a snag though: When doing a query with a special character in it like
muñeca
, I get a 400 error:Example URL: https://es.wikipedia.org/api/rest_v1/page/summary/Muñeca
However if I open this URL in the browser, I see results. Any idea what might be wrong? At first I thought it was the redirect from lowercase
muñeca
tomuñeca
but got follows redirects. So that's not it.Any ideas?
Resolves #2