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

Remove citation from wikipedia first paragraph #28

Open
fushar opened this issue Oct 1, 2015 · 2 comments
Open

Remove citation from wikipedia first paragraph #28

fushar opened this issue Oct 1, 2015 · 2 comments

Comments

@fushar
Copy link
Contributor

fushar commented Oct 1, 2015

If you use /leli, it will display the first paragraph of a wikipedia article. Sometimes it will contain citations, like [1], [2], etc. It would be better to remove them.

@kmkurn
Copy link

kmkurn commented Oct 1, 2015

Does Wikipedia have an API we can use? I think the wiki result will be much better if we use the API. No need to parse the HTML too.

@wazaundtechnik
Copy link
Contributor

We can simply retrieve the Wiki test and parse the Mediawiki syntax to get only the text (without formatting, style, citation, etc.)

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

No branches or pull requests

3 participants