Get Wikipedia page using python
background
I got a long list of animals, about 9000, and I need to figure out where each animal lives, specially whether lives in Africa. Unfortunately, there is no one database containing this kind information, all website I can got from internet is something like common knowledge other than a scientific list. Finally, I realized I forget a powful tool - wikipedia, but how to make it? I can not search them one by one, it must kill me. wait, I can code to solve this problem, come on, I am a bioinformatican.
python module - wikipedia
Wikipedia is a Python library that makes it easy to access and parse data from Wikipedia.
you can install by pip:
1 | pip install wikipedia |
Read the docs at https://wikipedia.readthedocs.org/en/latest/.
Quickstart
Full API
achievement
I post my codes here:
1 | import wikipedia |
- Title: Get Wikipedia page using python
- Author: Chentao Yang
- Created at : 2018-08-26 19:05:02
- Updated at : 2023-10-25 11:56:14
- Link: https://comery.github.io/2018/08/27/Get-Wikipedia-page-using-python/
- License: This work is licensed under CC BY-NC-SA 4.0.
Comments