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

Wikipedia search #22

Open
netr0m opened this issue Oct 18, 2017 · 0 comments
Open

Wikipedia search #22

netr0m opened this issue Oct 18, 2017 · 0 comments

Comments

@netr0m
Copy link
Owner

netr0m commented Oct 18, 2017

Future functionality to extend the usage of whiterose:
Let the user ask for information from Wikipedia about a specific item/place/person.
This can be achieved by using the Wikipedia Python package.

Example of usage: whiterose... what does wikipedia say about Barack Obama?, wikipedia Oslo.

Implementation

Importing the wikipedia package, requesting a summary of a specific item.

Code

import wikipedia as wiki

print(wiki.summary("Oslo", sentences=2))    # Get a two-sentence summary of the article about Oslo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants