Wikipedia, the world’s largest and free encyclopedia. It is the land full of information. I mean who would have used Wikipedia in their entire life (If you haven’t used it then most probably you are lying). The python library called Wikipedia
allows us to easily access and parse the data from Wikipedia. In other words, you can also use this library as a little scraper where you can scrape only limited information from Wikipedia. We will see how can we do that today in this tutorial.
The first step of using the API is manually installing it. Because, this is an external API it’s not built-in, so just type the following command to install it.
!pip install wikipedia
pip install wikipedia
After you enter the above command, in either of the above two cases you will be then prompted by success message like the one shown below. This is an indication that the library is successfully installed.
!pip install wikipedia
Collecting wikipedia Downloading https://files.pythonhosted.org/packages/67/35/25e68fbc99e672127cc6fbb14b8ec1ba3dfef035bf1e4c90f78f24a80b7d/wikipedia-1.4.0.tar.gz Requirement already satisfied: beautifulsoup4 in /usr/local/lib/python3.6/dist-packages (from wikipedia) (4.6.3) Requirement already satisfied: requests<3.0.0,>=2.0.0 in /usr/local/lib/python3.6/dist-packages (from wikipedia) (2.21.0) Requirement already satisfied: urllib3<1.25,>=1.21.1 in /usr/local/lib/python3.6/dist-packages (from requests<3.0.0,>=2.0.0->wikipedia) (1.24.3) Requirement already satisfied: idna<2.9,>=2.5 in /usr/local/lib/python3.6/dist-packages (from requests<3.0.0,>=2.0.0->wikipedia) (2.8) Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.6/dist-packages (from requests<3.0.0,>=2.0.0->wikipedia) (2019.11.28) Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.6/dist-packages (from requests<3.0.0,>=2.0.0->wikipedia) (3.0.4) Building wheels for collected packages: wikipedia Building wheel for wikipedia (setup.py) ... done Created wheel for wikipedia: filename=wikipedia-1.4.0-cp36-none-any.whl size=11686 sha256=d0d5cc5f62e177020a96252ea5991ec3839cb9e4a302f3d217426ce0a2c406d5 Stored in directory: /root/.cache/pip/wheels/87/2a/18/4e471fd96d12114d16fe4a446d00c3b38fb9efcb744bd31f4a Successfully built wikipedia Installing collected packages: wikipedia Successfully installed wikipedia-1.4.0
Now let us see some of the built-in methods provided by the Wikipedia API. The first one is Search and Suggestion. I’m pretty sure you guys might know the usage of these two methods because of its name.
The search method returns the search result for a query. Just like other search engines, Wikipedia has its own search engine, you can have a look at it below:
Now let us see how to retrieve the search results of a query using python. I will use “Coronavirus” as the topic in today’s tutorial because as well all know it’s trending and spreading worldwide. The first thing before starting to use API you need to first import it.
import wikipedia
print(wikipedia.search("Coronavirus"))
['Coronavirus', '2019–20 coronavirus pandemic', 'Severe acute respiratory syndrome coronavirus 2', 'Middle East respiratory syndrome-related coronavirus', 'Coronavirus disease 2019', '2020 coronavirus pandemic in California', 'Misinformation related to the 2019–20 coronavirus pandemic', 'Socio-economic impact of the 2019–20 coronavirus pandemic', 'Severe acute respiratory syndrome-related coronavirus', 'Severe acute respiratory syndrome coronavirus']
The above are some of the most searched queries on Wikipedia if you don’t believe me, go to the above link I have given and search for the topic and compare the results. And the search results change every hour probably.
There are some of the ways where you can filter the search results by using search parameters such as results and suggestion (I know don’t worry about the spelling). The result returns the maximum number of results and the suggestion if True, return results and suggestion (if any) in a tuple.
print(wikipedia.search("Coronavirus", results = 5, suggestion = True))
(['Coronavirus', '2019–20 coronavirus pandemic', 'Middle East respiratory syndrome-related coronavirus', 'Severe acute respiratory syndrome coronavirus 2', 'Severe acute respiratory syndrome-related coronavirus'], None)
Now the suggestion as the name suggests returns the suggested Wikipedia title for the query or none if it doesn't get any.
print(wikipedia.suggest('Coronavir'))
coronavirus
To get the summary of an article use the “summary” method as shown below:
print(wikipedia.summary("Coronavirus"))
Coronaviruses are a group of related viruses that cause diseases in mammals and birds. In humans, coronaviruses cause respiratory tract infections that can be mild, such as some cases of the common cold (among other possible causes, predominantly rhinoviruses), and others that can be lethal, such as SARS, MERS, and COVID-19. Symptoms in other species vary: in chickens, they cause an upper respiratory tract disease, while in cows and pigs they cause diarrhea. There are yet to be vaccines or antiviral drugs to prevent or treat human coronavirus infections. Coronaviruses constitute the subfamily Orthocoronavirinae, in the family Coronaviridae, order Nidovirales, and realm Riboviria. They are enveloped viruses with a positive-sense single-stranded RNA genome and a nucleocapsid of helical symmetry. The genome size of coronaviruses ranges from approximately 27 to 34 kilobases, the largest among known RNA viruses. The name coronavirus is derived from the Latin corona, meaning "crown" or "halo", which refers to the characteristic appearance reminiscent of a crown or a solar corona around the virions (virus particles) when viewed under two-dimensional transmission electron microscopy, due to the surface being covered in club-shaped protein spikes.
But sometimes be careful, you might run into a DisambiguationError
. Which means the same words with different meanings. For example, the word “bass” can represent a fish or beats or many more. At that time the summary method throws an error as shown below.
Hint: Be specific in your approach
print(wikipedia.summary("bass"))
/usr/local/lib/python3.6/dist-packages/wikipedia/wikipedia.py:389: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently. The code that caused this warning is on line 389 of the file /usr/local/lib/python3.6/dist-packages/wikipedia/wikipedia.py. To get rid of this warning, pass the additional argument 'features="lxml"' to the BeautifulSoup constructor. lis = BeautifulSoup(html).find_all('li')
--------------------------------------------------------------------------- DisambiguationError Traceback (most recent call last) <ipython-input-7-1ffcaa003e81> in <module>() ----> 1 print(wikipedia.summary("bass")) /usr/local/lib/python3.6/dist-packages/wikipedia/util.py in __call__(self, *args, **kwargs) 26 ret = self._cache[key] 27 else: ---> 28 ret = self._cache[key] = self.fn(*args, **kwargs) 29 30 return ret /usr/local/lib/python3.6/dist-packages/wikipedia/wikipedia.py in summary(title, sentences, chars, auto_suggest, redirect) 229 # use auto_suggest and redirect to get the correct article 230 # also, use page's error checking to raise DisambiguationError if necessary --> 231 page_info = page(title, auto_suggest=auto_suggest, redirect=redirect) 232 title = page_info.title 233 pageid = page_info.pageid /usr/local/lib/python3.6/dist-packages/wikipedia/wikipedia.py in page(title, pageid, auto_suggest, redirect, preload) 274 # if there is no suggestion or search results, the page doesn't exist 275 raise PageError(title) --> 276 return WikipediaPage(title, redirect=redirect, preload=preload) 277 elif pageid is not None: 278 return WikipediaPage(pageid=pageid, preload=preload) /usr/local/lib/python3.6/dist-packages/wikipedia/wikipedia.py in __init__(self, title, pageid, redirect, preload, original_title) 297 raise ValueError("Either a title or a pageid must be specified") 298 --> 299 self.__load(redirect=redirect, preload=preload) 300 301 if preload: /usr/local/lib/python3.6/dist-packages/wikipedia/wikipedia.py in __load(self, redirect, preload) 391 may_refer_to = [li.a.get_text() for li in filtered_lis if li.a] 392 --> 393 raise DisambiguationError(getattr(self, 'title', page['title']), may_refer_to) 394 395 else: DisambiguationError: "Bass" may refer to: Bass (fish) Bass (sound) Acoustic bass guitar Bass clarinet cornett Bass drum Bass flute Bass guitar Bass recorder Bass sarrusophone Bass saxophone Bass trombone Bass trumpet Bass violin Double bass Electric upright bass Tuba Bass (voice type) Bass clef Bass note Bassline Culture Vulture (EP) Simon Harris (musician) Simon Harris (musician) Tubular Bells 2003 Bass Brewery Bass Anglers Sportsman Society G.H. Bass & Co. Bass (surname) Bass Reeves Chuck Bass Bass Armstrong Bass Monroe Mega Man characters Bass Strait Bass Pyramid Bass, Victoria Division of Bass Division of Bass (state) Electoral district of Bass Shire of Bass Bass, Alabama Bass, Arkansas Bass, Casey County, Kentucky Bass, Missouri Bass, West Virginia Nancy Lee and Perry R. Bass Performance Hall Bass, Hansi Bass River (disambiguation) Bass Rock Basses, Vienne Bass diffusion model Beneath a Steel Sky Buttocks BASS USS Bass Bas (disambiguation) Base (disambiguation) Bass House (disambiguation) Basse (disambiguation) Bassline (disambiguation) Drum and bass Figured bass Miami bass Ghettotech Sebastian (name)
Also, Wikipedia API gives us an option to change the language that we want to read the articles. All you have to do it set the language to your desired language. Any french readers in the house, I would be using the french language as a reference.
wikipedia.set_lang("fr")
wikipedia.summary("Coronavirus")
"Coronavirus ou CoV (du latin, virus à couronne) est le nom d'un genre de virus correspondant à la sous-famille des orthocoronavirinæ (de la famille des coronaviridæ). Le virus à couronne doit son nom à l'apparence des virions sous un microscope électronique, avec une frange de grandes projections bulbeuses qui ressemblent à la couronne solaire. \nLes coronavirus sont munis d'une enveloppe virale ayant un génome à ARN de sens positif et une capside (coque) kilobases, incroyablement grosse pour un virus à ARN. Ils se classent parmi les Nidovirales, puisque tous les virus de cet ordre produisent un jeu imbriqué d'ARNm sous-génomique lors de l'infection. Des protéines en forme de pic, enveloppe, membrane et capside contribuent à la structure d'ensemble de tous les coronavirus. Ces virus à ARN sont monocaténaire (simple brin) et de sens positif (groupe IV de la classification Baltimore). Ils peuvent muter et se recombiner. \nLes chauves-souris et les oiseaux, en tant que vertébrés volants à sang chaud, sont des hôtes idéaux pour les coronavirus, avec les chauves-souris et les oiseaux, assurant l'évolution et la dissémination du coronavirus.\nLes coronavirus sont normalement spécifiques à un taxon animal comme hôte, mammifères ou oiseaux selon leur espèce ; mais ces virus peuvent parfois changer d'hôte à la suite d'une mutation. Leur transmission interhumaine se produit principalement par contacts étroits via des gouttelettes respiratoires générées par les éternuements et la toux.\nLes coronavirus ont été responsables chez l'homme des graves épidémies de syndrome respiratoire aigu sévère (SRAS) en 2002/2003 et du syndrome respiratoire du Moyen-Orient (MERS) à partir de 2012, ainsi que la pandémie de Covid-19 de 2020, causée par le coronavirus SARS-CoV-2, contre lequel on ne dispose pas encore de vaccin ni de médicament à l'efficacité prouvée."
Now let us what languages does Wikipedia support, this might be a common question that people ask. Now here is the answer. Currently, Wikipedia supports 444 different languages. To find it see the code below:
wikipedia.languages()
{'aa': 'Qafár af', 'ab': 'Аҧсшәа', 'abs': 'bahasa ambon', 'ace': 'Acèh', 'ady': 'адыгабзэ', 'ady-cyrl': 'адыгабзэ', 'aeb': 'تونسي/Tûnsî', 'aeb-arab': 'تونسي', 'aeb-latn': 'Tûnsî', 'af': 'Afrikaans', 'ak': 'Akan', 'aln': 'Gegë', 'als': 'Alemannisch', 'am': 'አማርኛ', 'an': 'aragonés', 'ang': 'Ænglisc', 'anp': 'अङ्गिका', 'ar': 'العربية', 'arc': 'ܐܪܡܝܐ', 'arn': 'mapudungun', 'arq': 'جازايرية', 'ary': 'Maġribi', 'arz': 'مصرى', 'as': 'অসমীয়া', 'ase': 'American sign language', 'ast': 'asturianu', 'atj': 'Atikamekw', 'av': 'авар', 'avk': 'Kotava', 'awa': 'अवधी', 'ay': 'Aymar aru', 'az': 'azərbaycanca', 'azb': 'تۆرکجه', 'ba': 'башҡортса', 'ban': 'Bali', 'bar': 'Boarisch', 'bat-smg': 'žemaitėška', 'bbc': 'Batak Toba', 'bbc-latn': 'Batak Toba', 'bcc': 'جهلسری بلوچی', 'bcl': 'Bikol Central', 'be': 'беларуская', 'be-tarask': 'беларуская (тарашкевіца)\u200e', 'be-x-old': 'беларуская (тарашкевіца)\u200e', 'bg': 'български', 'bgn': 'روچ کپتین بلوچی', 'bh': 'भोजपुरी', 'bho': 'भोजपुरी', 'bi': 'Bislama', 'bjn': 'Banjar', 'bm': 'bamanankan', 'bn': 'বাংলা', 'bo': 'བོད་ཡིག', 'bpy': 'বিষ্ণুপ্রিয়া মণিপুরী', 'bqi': 'بختیاری', 'br': 'brezhoneg', 'brh': 'Bráhuí', 'bs': 'bosanski', 'btm': 'Batak Mandailing', 'bto': 'Iriga Bicolano', 'bug': 'ᨅᨔ ᨕᨘᨁᨗ', 'bxr': 'буряад', 'ca': 'català', 'cbk-zam': 'Chavacano de Zamboanga', 'cdo': 'Mìng-dĕ̤ng-ngṳ̄', 'ce': 'нохчийн', 'ceb': 'Cebuano', 'ch': 'Chamoru', 'cho': 'Choctaw', 'chr': 'ᏣᎳᎩ', 'chy': 'Tsetsêhestâhese', 'ckb': 'کوردی', 'co': 'corsu', 'cps': 'Capiceño', 'cr': 'Nēhiyawēwin / ᓀᐦᐃᔭᐍᐏᐣ', 'crh': 'qırımtatarca', 'crh-cyrl': 'къырымтатарджа (Кирилл)\u200e', 'crh-latn': 'qırımtatarca (Latin)\u200e', 'cs': 'čeština', 'csb': 'kaszëbsczi', 'cu': 'словѣньскъ / ⰔⰎⰑⰂⰡⰐⰠⰔⰍⰟ', 'cv': 'Чӑвашла', 'cy': 'Cymraeg', 'da': 'dansk', 'de': 'Deutsch', 'de-at': 'Österreichisches Deutsch', 'de-ch': 'Schweizer Hochdeutsch', 'de-formal': 'Deutsch (Sie-Form)\u200e', 'din': 'Thuɔŋjäŋ', 'diq': 'Zazaki', 'dsb': 'dolnoserbski', 'dtp': 'Dusun Bundu-liwan', 'dty': 'डोटेली', 'dv': 'ދިވެހިބަސް', 'dz': 'ཇོང་ཁ', 'ee': 'eʋegbe', 'egl': 'Emiliàn', 'el': 'Ελληνικά', 'eml': 'emiliàn e rumagnòl', 'en': 'English', 'en-ca': 'Canadian English', 'en-gb': 'British English', 'eo': 'Esperanto', 'es': 'español', 'es-419': 'español de América Latina', 'es-formal': 'español (formal)\u200e', 'et': 'eesti', 'eu': 'euskara', 'ext': 'estremeñu', 'fa': 'فارسی', 'ff': 'Fulfulde', 'fi': 'suomi', 'fit': 'meänkieli', 'fiu-vro': 'Võro', 'fj': 'Na Vosa Vakaviti', 'fo': 'føroyskt', 'fr': 'français', 'frc': 'français cadien', 'frp': 'arpetan', 'frr': 'Nordfriisk', 'fur': 'furlan', 'fy': 'Frysk', 'ga': 'Gaeilge', 'gag': 'Gagauz', 'gan': '贛語', 'gan-hans': '赣语(简体)\u200e', 'gan-hant': '贛語(繁體)\u200e', 'gcr': 'kriyòl gwiyannen', 'gd': 'Gàidhlig', 'gl': 'galego', 'glk': 'گیلکی', 'gn': "Avañe'ẽ", 'gom': 'गोंयची कोंकणी / Gõychi Konknni', 'gom-deva': 'गोंयची कोंकणी', 'gom-latn': 'Gõychi Konknni', 'gor': 'Bahasa Hulontalo', 'got': '𐌲𐌿𐍄𐌹𐍃𐌺', 'grc': 'Ἀρχαία ἑλληνικὴ', 'gsw': 'Alemannisch', 'gu': 'ગુજરાતી', 'gv': 'Gaelg', 'ha': 'Hausa', 'hak': '客家語/Hak-kâ-ngî', 'haw': 'Hawaiʻi', 'he': 'עברית', 'hi': 'हिन्दी', 'hif': 'Fiji Hindi', 'hif-latn': 'Fiji Hindi', 'hil': 'Ilonggo', 'ho': 'Hiri Motu', 'hr': 'hrvatski', 'hrx': 'Hunsrik', 'hsb': 'hornjoserbsce', 'ht': 'Kreyòl ayisyen', 'hu': 'magyar', 'hu-formal': 'magyar (formal)\u200e', 'hy': 'հայերեն', 'hyw': 'Արեւմտահայերէն', 'hz': 'Otsiherero', 'ia': 'interlingua', 'id': 'Bahasa Indonesia', 'ie': 'Interlingue', 'ig': 'Igbo', 'ii': 'ꆇꉙ', 'ik': 'Iñupiak', 'ike-cans': 'ᐃᓄᒃᑎᑐᑦ', 'ike-latn': 'inuktitut', 'ilo': 'Ilokano', 'inh': 'ГӀалгӀай', 'io': 'Ido', 'is': 'íslenska', 'it': 'italiano', 'iu': 'ᐃᓄᒃᑎᑐᑦ/inuktitut', 'ja': '日本語', 'jam': 'Patois', 'jbo': 'la .lojban.', 'jut': 'jysk', 'jv': 'Jawa', 'ka': 'ქართული', 'kaa': 'Qaraqalpaqsha', 'kab': 'Taqbaylit', 'kbd': 'Адыгэбзэ', 'kbd-cyrl': 'Адыгэбзэ', 'kbp': 'Kabɩyɛ', 'kg': 'Kongo', 'khw': 'کھوار', 'ki': 'Gĩkũyũ', 'kiu': 'Kırmancki', 'kj': 'Kwanyama', 'kjp': 'ဖၠုံလိက်', 'kk': 'қазақша', 'kk-arab': 'قازاقشا (تٴوتە)\u200f', 'kk-cn': 'قازاقشا (جۇنگو)\u200f', 'kk-cyrl': 'қазақша (кирил)\u200e', 'kk-kz': 'қазақша (Қазақстан)\u200e', 'kk-latn': 'qazaqşa (latın)\u200e', 'kk-tr': 'qazaqşa (Türkïya)\u200e', 'kl': 'kalaallisut', 'km': 'ភាសាខ្មែរ', 'kn': 'ಕನ್ನಡ', 'ko': '한국어', 'ko-kp': '조선말', 'koi': 'Перем Коми', 'kr': 'Kanuri', 'krc': 'къарачай-малкъар', 'kri': 'Krio', 'krj': 'Kinaray-a', 'krl': 'karjal', 'ks': 'कॉशुर / کٲشُر', 'ks-arab': 'کٲشُر', 'ks-deva': 'कॉशुर', 'ksh': 'Ripoarisch', 'ku': 'kurdî', 'ku-arab': 'كوردي (عەرەبی)\u200f', 'ku-latn': 'kurdî (latînî)\u200e', 'kum': 'къумукъ', 'kv': 'коми', 'kw': 'kernowek', 'ky': 'Кыргызча', 'la': 'Latina', 'lad': 'Ladino', 'lb': 'Lëtzebuergesch', 'lbe': 'лакку', 'lez': 'лезги', 'lfn': 'Lingua Franca Nova', 'lg': 'Luganda', 'li': 'Limburgs', 'lij': 'Ligure', 'liv': 'Līvõ kēļ', 'lki': 'لەکی', 'lmo': 'lumbaart', 'ln': 'lingála', 'lo': 'ລາວ', 'loz': 'Silozi', 'lrc': 'لۊری شومالی', 'lt': 'lietuvių', 'ltg': 'latgaļu', 'lus': 'Mizo ţawng', 'luz': 'لئری دوٙمینی', 'lv': 'latviešu', 'lzh': '文言', 'lzz': 'Lazuri', 'mai': 'मैथिली', 'map-bms': 'Basa Banyumasan', 'mdf': 'мокшень', 'mg': 'Malagasy', 'mh': 'Ebon', 'mhr': 'олык марий', 'mi': 'Māori', 'min': 'Minangkabau', 'mk': 'македонски', 'ml': 'മലയാളം', 'mn': 'монгол', 'mni': 'ꯃꯤꯇꯩ ꯂꯣꯟ', 'mnw': 'ဘာသာ မန်', 'mo': 'молдовеняскэ', 'mr': 'मराठी', 'mrj': 'кырык мары', 'ms': 'Bahasa Melayu', 'mt': 'Malti', 'mus': 'Mvskoke', 'mwl': 'Mirandés', 'my': 'မြန်မာဘာသာ', 'myv': 'эрзянь', 'mzn': 'مازِرونی', 'na': 'Dorerin Naoero', 'nah': 'Nāhuatl', 'nan': 'Bân-lâm-gú', 'nap': 'Napulitano', 'nb': 'norsk bokmål', 'nds': 'Plattdüütsch', 'nds-nl': 'Nedersaksies', 'ne': 'नेपाली', 'new': 'नेपाल भाषा', 'ng': 'Oshiwambo', 'niu': 'Niuē', 'nl': 'Nederlands', 'nl-informal': 'Nederlands (informeel)\u200e', 'nn': 'norsk nynorsk', 'no': 'norsk', 'nov': 'Novial', 'nqo': 'ߒߞߏ', 'nrm': 'Nouormand', 'nso': 'Sesotho sa Leboa', 'nv': 'Diné bizaad', 'ny': 'Chi-Chewa', 'nys': 'Nyunga', 'oc': 'occitan', 'olo': 'Livvinkarjala', 'om': 'Oromoo', 'or': 'ଓଡ଼ିଆ', 'os': 'Ирон', 'pa': 'ਪੰਜਾਬੀ', 'pag': 'Pangasinan', 'pam': 'Kapampangan', 'pap': 'Papiamentu', 'pcd': 'Picard', 'pdc': 'Deitsch', 'pdt': 'Plautdietsch', 'pfl': 'Pälzisch', 'pi': 'पालि', 'pih': 'Norfuk / Pitkern', 'pl': 'polski', 'pms': 'Piemontèis', 'pnb': 'پنجابی', 'pnt': 'Ποντιακά', 'prg': 'Prūsiskan', 'ps': 'پښتو', 'pt': 'português', 'pt-br': 'português do Brasil', 'qu': 'Runa Simi', 'qug': 'Runa shimi', 'rgn': 'Rumagnôl', 'rif': 'Tarifit', 'rm': 'rumantsch', 'rmy': 'romani čhib', 'rn': 'Kirundi', 'ro': 'română', 'roa-rup': 'armãneashti', 'roa-tara': 'tarandíne', 'ru': 'русский', 'rue': 'русиньскый', 'rup': 'armãneashti', 'ruq': 'Vlăheşte', 'ruq-cyrl': 'Влахесте', 'ruq-latn': 'Vlăheşte', 'rw': 'Kinyarwanda', 'sa': 'संस्कृतम्', 'sah': 'саха тыла', 'sat': 'ᱥᱟᱱᱛᱟᱲᱤ', 'sc': 'sardu', 'scn': 'sicilianu', 'sco': 'Scots', 'sd': 'سنڌي', 'sdc': 'Sassaresu', 'sdh': 'کوردی خوارگ', 'se': 'davvisámegiella', 'sei': 'Cmique Itom', 'ses': 'Koyraboro Senni', 'sg': 'Sängö', 'sgs': 'žemaitėška', 'sh': 'srpskohrvatski / српскохрватски', 'shi': 'Tašlḥiyt/ⵜⴰⵛⵍⵃⵉⵜ', 'shi-latn': 'Tašlḥiyt', 'shi-tfng': 'ⵜⴰⵛⵍⵃⵉⵜ', 'shn': 'ၽႃႇသႃႇတႆး ', 'shy-latn': 'tacawit', 'si': 'සිංහල', 'simple': 'Simple English', 'sk': 'slovenčina', 'skr': 'سرائیکی', 'skr-arab': 'سرائیکی', 'sl': 'slovenščina', 'sli': 'Schläsch', 'sm': 'Gagana Samoa', 'sma': 'Åarjelsaemien', 'sn': 'chiShona', 'so': 'Soomaaliga', 'sq': 'shqip', 'sr': 'српски / srpski', 'sr-ec': 'српски (ћирилица)\u200e', 'sr-el': 'srpski (latinica)\u200e', 'srn': 'Sranantongo', 'ss': 'SiSwati', 'st': 'Sesotho', 'stq': 'Seeltersk', 'sty': 'cебертатар', 'su': 'Sunda', 'sv': 'svenska', 'sw': 'Kiswahili', 'szl': 'ślůnski', 'szy': 'Sakizaya', 'ta': 'தமிழ்', 'tay': 'Tayal', 'tcy': 'ತುಳು', 'te': 'తెలుగు', 'tet': 'tetun', 'tg': 'тоҷикӣ', 'tg-cyrl': 'тоҷикӣ', 'tg-latn': 'tojikī', 'th': 'ไทย', 'ti': 'ትግርኛ', 'tk': 'Türkmençe', 'tl': 'Tagalog', 'tly': 'толышә зывон', 'tn': 'Setswana', 'to': 'lea faka-Tonga', 'tpi': 'Tok Pisin', 'tr': 'Türkçe', 'tru': 'Ṫuroyo', 'ts': 'Xitsonga', 'tt': 'татарча/tatarça', 'tt-cyrl': 'татарча', 'tt-latn': 'tatarça', 'tum': 'chiTumbuka', 'tw': 'Twi', 'ty': 'reo tahiti', 'tyv': 'тыва дыл', 'tzm': 'ⵜⴰⵎⴰⵣⵉⵖⵜ', 'udm': 'удмурт', 'ug': 'ئۇيغۇرچە / Uyghurche', 'ug-arab': 'ئۇيغۇرچە', 'ug-latn': 'Uyghurche', 'uk': 'українська', 'ur': 'اردو', 'uz': 'oʻzbekcha/ўзбекча', 'uz-cyrl': 'ўзбекча', 'uz-latn': 'oʻzbekcha', 've': 'Tshivenda', 'vec': 'vèneto', 'vep': 'vepsän kel’', 'vi': 'Tiếng Việt', 'vls': 'West-Vlams', 'vmf': 'Mainfränkisch', 'vo': 'Volapük', 'vot': 'Vaďďa', 'vro': 'Võro', 'wa': 'walon', 'war': 'Winaray', 'wo': 'Wolof', 'wuu': '吴语', 'xal': 'хальмг', 'xh': 'isiXhosa', 'xmf': 'მარგალური', 'xsy': 'saisiyat', 'yi': 'ייִדיש', 'yo': 'Yorùbá', 'yue': '粵語', 'za': 'Vahcuengh', 'zea': 'Zeêuws', 'zgh': 'ⵜⴰⵎⴰⵣⵉⵖⵜ ⵜⴰⵏⴰⵡⴰⵢⵜ', 'zh': '中文', 'zh-classical': '文言', 'zh-cn': '中文(中国大陆)\u200e', 'zh-hans': '中文(简体)\u200e', 'zh-hant': '中文(繁體)\u200e', 'zh-hk': '中文(香港)\u200e', 'zh-min-nan': 'Bân-lâm-gú', 'zh-mo': '中文(澳門)\u200e', 'zh-my': '中文(马来西亚)\u200e', 'zh-sg': '中文(新加坡)\u200e', 'zh-tw': '中文(台灣)\u200e', 'zh-yue': '粵語', 'zu': 'isiZulu'}
To check is a language is supported then write a condition as shown below:
'en' in wikipedia.languages()
True
Here ‘en’ stands for ‘English’ and you know the answer for the above code. Its obviously a “True” or “False”, here it’s “True”
Also, to get a possible language prefix please try:
wikipedia.languages()['en']
'English'
The API also gives us full access to the Wikipedia page, with the help of which we can access the title, URL, content, images, links of the complete page. In order to access the page you need to load the page first as shown below:
Just a heads up, I will use a single article topic (Coronavirus) as a reference in this example:
covid = wikipedia.page("Coronavirus")
To access the title of the above-provided page use:
print(covid.title)
Coronavirus
To get the URL of the page use:
print(covid.url)
https://en.wikipedia.org/wiki/Coronavirus
To access the content of the page use:
print(covid.content)
Coronaviruses are a group of related viruses that cause diseases in mammals and birds. In humans, coronaviruses cause respiratory tract infections that can be mild, such as some cases of the common cold (among other possible causes, predominantly rhinoviruses), and others that can be lethal, such as SARS, MERS, and COVID-19. Symptoms in other species vary: in chickens, they cause an upper respiratory tract disease, while in cows and pigs they cause diarrhea. There are yet to be vaccines or antiviral drugs to prevent or treat human coronavirus infections. Coronaviruses constitute the subfamily Orthocoronavirinae, in the family Coronaviridae, order Nidovirales, and realm Riboviria. They are enveloped viruses with a positive-sense single-stranded RNA genome and a nucleocapsid of helical symmetry. The genome size of coronaviruses ranges from approximately 27 to 34 kilobases, the largest among known RNA viruses. The name coronavirus is derived from the Latin corona, meaning "crown" or "halo", which refers to the characteristic appearance reminiscent of a crown or a solar corona around the virions (virus particles) when viewed under two-dimensional transmission electron microscopy, due to the surface being covered in club-shaped protein spikes. == Discovery == Human coronaviruses were first discovered in the late 1960s. The earliest ones discovered were an infectious bronchitis virus in chickens and two in human patients with the common cold (later named human coronavirus 229E and human coronavirus OC43). Other members of this family have since been identified, including SARS-CoV in 2003, HCoV NL63 in 2004, HKU1 in 2005, MERS-CoV in 2012, and SARS-CoV-2 (formerly known as 2019-nCoV) in 2019. Most of these have involved serious respiratory tract infections. == Etymology == The name "coronavirus" is derived from Latin corona, meaning "crown" or "wreath", itself a borrowing from Greek κορώνη korṓnē, "garland, wreath". The name refers to the characteristic appearance of virions (the infective form of the virus) by electron microscopy, which have a fringe of large, bulbous surface projections creating an image reminiscent of a crown or of a solar corona. This morphology is created by the viral spike peplomers, which are proteins on the surface of the virus. == Morphology == Coronaviruses are large pleomorphic spherical particles with bulbous surface projections. The diameter of the virus particles is around 120 nm. The envelope of the virus in electron micrographs appears as a distinct pair of electron dense shells.The viral envelope consists of a lipid bilayer where the membrane (M), envelope (E) and spike (S) structural proteins are anchored. A subset of coronaviruses (specifically the members of betacoronavirus subgroup A) also have a shorter spike-like surface protein called hemagglutinin esterase (HE).Inside the envelope, there is the nucleocapsid, which is formed from multiple copies of the nucleocapsid (N) protein, which are bound to the positive-sense single-stranded RNA genome in a continuous beads-on-a-string type conformation. The lipid bilayer envelope, membrane proteins, and nucleocapsid protect the virus when it is outside the host cell. == Genome == Coronaviruses contain a positive-sense, single-stranded RNA genome. The genome size for coronaviruses ranges from approximately 27 to 34 kilobases. The genome size is one of the largest among RNA viruses. The genome has a 5′ methylated cap and a 3′ polyadenylated tail.The genome organization for a coronavirus is 5′-leader-UTR-replicase/transcriptase-spike (S)-envelope (E)-membrane (M)-nucleocapsid (N)-3′UTR-poly (A) tail. The open reading frames 1a and 1b, which occupy the first two-thirds of the genome, encode the replicase/transcriptase polyprotein. The replicase/transcriptase polyprotein self cleaves to form the nonstructural proteins (nsps).The later reading frames encode the four major structural proteins: spike, envelope, membrane, and nucleocapsid. Interspersed between these reading frames are the reading frames for the accessory proteins. The number of accessory proteins and their function is unique depending on the specific coronavirus. == Life cycle == === Entry === Infection begins when the viral spike (S) glycoprotein attaches to its complementary host cell receptor. After attachment, a protease of the host cell cleaves and activates the receptor-attached spike protein. Depending on the host cell protease available, cleavage and activation allows the virus to enter the host cell by endocytosis or direct fusion of the viral envelop with the host membrane.On entry into the host cell, the virus particle is uncoated, and its genome enters the cell cytoplasm. The coronavirus RNA genome has a 5′ methylated cap and a 3′ polyadenylated tail, which allows the RNA to attach to the host cell's ribosome for translation. The host ribosome translates the initial overlapping open reading frame of the virus genome and forms a long polyprotein. The polyprotein has its own proteases which cleave the polyprotein into multiple nonstructural proteins. === Replication === A number of the nonstructural proteins coalesce to form a multi-protein replicase-transcriptase complex (RTC). The main replicase-transcriptase protein is the RNA-dependent RNA polymerase (RdRp). It is directly involved in the replication and transcription of RNA from an RNA strand. The other nonstructural proteins in the complex assist in the replication and transcription process. The exoribonuclease non-structural protein, for instance, provides extra fidelity to replication by providing a proofreading function which the RNA-dependent RNA polymerase lacks.One of the main functions of the complex is to replicate the viral genome. RdRp directly mediates the synthesis of negative-sense genomic RNA from the positive-sense genomic RNA. This is followed by the replication of positive-sense genomic RNA from the negative-sense genomic RNA. The other important function of the complex is to transcribe the viral genome. RdRp directly mediates the synthesis of negative-sense subgenomic RNA molecules from the positive-sense genomic RNA. This is followed by the transcription of these negative-sense subgenomic RNA molecules to their corresponding positive-sense mRNAs. === Release === The replicated positive-sense genomic RNA becomes the genome of the progeny viruses. The mRNAs are gene transcripts of the last third of the virus genome after the initial overlapping reading frame. These mRNAs are translated by the host's ribosomes into the structural proteins and a number of accessory proteins. RNA translation occurs inside the endoplasmic reticulum. The viral structural proteins S, E, and M move along the secretory pathway into the Golgi intermediate compartment. There, the M proteins direct most protein-protein interactions required for assembly of viruses following its binding to the nucleocapsid. Progeny viruses are then released from the host cell by exocytosis through secretory vesicles. == Transmission == Human to human transmission of coronaviruses is primarily thought to occur among close contacts via respiratory droplets generated by sneezing and coughing. The interaction of the coronavirus spike protein with its complement host cell receptor is central in determining the tissue tropism, infectivity, and species range of the virus. The SARS coronavirus, for example, infects human cells by attaching to the angiotensin-converting enzyme 2 (ACE2) receptor. == Taxonomy == The scientific name for coronavirus is Orthocoronavirinae or Coronavirinae. Coronavirus belongs to the family of Coronaviridae. Genus: Alphacoronavirus Species: Human coronavirus 229E, Human coronavirus NL63, Miniopterus bat coronavirus 1, Miniopterus bat coronavirus HKU8, Porcine epidemic diarrhea virus, Rhinolophus bat coronavirus HKU2, Scotophilus bat coronavirus 512 Genus Betacoronavirus; type species: Murine coronavirus Species: Betacoronavirus 1, Human coronavirus HKU1, Murine coronavirus, Pipistrellus bat coronavirus HKU5, Rousettus bat coronavirus HKU9, Severe acute respiratory syndrome-related coronavirus, Severe acute respiratory syndrome coronavirus 2, Tylonycteris bat coronavirus HKU4, Middle East respiratory syndrome-related coronavirus, Human coronavirus OC43, Hedgehog coronavirus 1 (EriCoV) Genus Gammacoronavirus; type species: Infectious bronchitis virus Species: Beluga whale coronavirus SW1, Infectious bronchitis virus Genus Deltacoronavirus; type species: Bulbul coronavirus HKU11 Species: Bulbul coronavirus HKU11, Porcine coronavirus HKU15 == Evolution == The most recent common ancestor (MRCA) of all coronaviruses has been estimated to have existed as recently as 8000 BCE, though some models place the MRCA as far back as 55 million years or more, implying long term coevolution with bats. The MRCAs of the alphacoronavirus line has been placed at about 2400 BCE, the betacoronavirus line at 3300 BCE, the gammacoronavirus line at 2800 BCE, and the deltacoronavirus line at about 3000 BCE. It appears that bats and birds, as warm-blooded flying vertebrates, are ideal hosts for the coronavirus gene source (with bats for alphacoronavirus and betacoronavirus, and birds for gammacoronavirus and deltacoronavirus) to fuel coronavirus evolution and dissemination.Bovine coronavirus and canine respiratory coronaviruses diverged from a common ancestor recently (~ 1950). Bovine coronavirus and human coronavirus OC43 diverged around the 1890s. Bovine coronavirus diverged from the equine coronavirus species at the end of the 18th century.The MRCA of human coronavirus OC43 has been dated to the 1950s.MERS-CoV, although related to several bat coronavirus species, appears to have diverged from these several centuries ago. The human coronavirus NL63 and a bat coronavirus shared an MRCA 563–822 years ago.The most closely related bat coronavirus and SARS-CoV diverged in 1986. A path of evolution of the SARS virus and keen relationship with bats have been proposed. The authors suggest that the coronaviruses have been coevolved with bats for a long time and the ancestors of SARS-CoV first infected the species of the genus Hipposideridae, subsequently spread to species of the Rhinolophidae and then to civets, and finally to humans.Alpaca coronavirus and human coronavirus 229E diverged before 1960. == Human coronaviruses == Coronaviruses vary significantly in risk factor. Some can kill more than 30% of those infected (such as MERS-CoV), and some are relatively harmless, such as the common cold. Coronaviruses cause colds with major symptoms, such as fever, and sore throat from swollen adenoids, occurring primarily in the winter and early spring seasons. Coronaviruses can cause pneumonia (either direct viral pneumonia or a secondary bacterial pneumonia) and bronchitis (either direct viral bronchitis or a secondary bacterial bronchitis). The much publicized human coronavirus discovered in 2003, SARS-CoV, which causes severe acute respiratory syndrome (SARS), has a unique pathogenesis because it causes both upper and lower respiratory tract infections.Seven strains of human coronaviruses are known, of which four produce the generally mild symptoms of the common cold: Human coronavirus OC43 (HCoV-OC43) Human coronavirus HKU1 Human coronavirus NL63 (HCoV-NL63, New Haven coronavirus) Human coronavirus 229E (HCoV-229E)– and three, symptoms that are potentially severe: Middle East respiratory syndrome-related coronavirus (MERS-CoV), previously known as novel coronavirus 2012 and HCoV-EMC Severe acute respiratory syndrome coronavirus (SARS-CoV or "SARS-classic") Severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2), previously known as 2019-nCoV or "novel coronavirus 2019"The coronaviruses HCoV-229E, -NL63, -OC43, and -HKU1 continually circulate in the human population and cause respiratory infections in adults and children world-wide. == Outbreaks of coronavirus-related diseases == Outbreaks of coronavirus types of relatively high mortality are as follows: === Severe acute respiratory syndrome (SARS) === In 2003, following the outbreak of severe acute respiratory syndrome (SARS) which had begun the prior year in Asia, and secondary cases elsewhere in the world, the World Health Organization (WHO) issued a press release stating that a novel coronavirus identified by a number of laboratories was the causative agent for SARS. The virus was officially named the SARS coronavirus (SARS-CoV). More than 8,000 people were infected, about ten percent of whom died. === Middle East respiratory syndrome (MERS) === In September 2012, a new type of coronavirus was identified, initially called Novel Coronavirus 2012, and now officially named Middle East respiratory syndrome coronavirus (MERS-CoV). The World Health Organization issued a global alert soon after. The WHO update on 28 September 2012 said the virus did not seem to pass easily from person to person. However, on 12 May 2013, a case of human-to-human transmission in France was confirmed by the French Ministry of Social Affairs and Health. In addition, cases of human-to-human transmission were reported by the Ministry of Health in Tunisia. Two confirmed cases involved people who seemed to have caught the disease from their late father, who became ill after a visit to Qatar and Saudi Arabia. Despite this, it appears the virus had trouble spreading from human to human, as most individuals who are infected do not transmit the virus. By 30 October 2013, there were 124 cases and 52 deaths in Saudi Arabia.After the Dutch Erasmus Medical Centre sequenced the virus, the virus was given a new name, Human Coronavirus–Erasmus Medical Centre (HCoV-EMC). The final name for the virus is Middle East respiratory syndrome coronavirus (MERS-CoV). In May 2014, the only two United States cases of MERS-CoV infection were recorded, both occurring in healthcare workers who worked in Saudi Arabia and then travelled to the U.S. One was treated in Indiana and one in Florida. Both were hospitalized temporarily and then discharged.In May 2015, an outbreak of MERS-CoV occurred in the Republic of Korea, when a man who had traveled to the Middle East, visited 4 hospitals in the Seoul area to treat his illness. This caused one of the largest outbreaks of MERS-CoV outside the Middle East. As of December 2019, 2,468 cases of MERS-CoV infection had been confirmed by laboratory tests, 851 of which were fatal, a mortality rate of approximately 34.5%. === Coronavirus disease 2019 (COVID-19) === In December 2019, a pneumonia outbreak was reported in Wuhan, China. On 31 December 2019, the outbreak was traced to a novel strain of coronavirus, which was given the interim name 2019-nCoV by the World Health Organization (WHO), later renamed SARS-CoV-2 by the International Committee on Taxonomy of Viruses. Some researchers have suggested that the Huanan Seafood Wholesale Market may not be the original source of viral transmission to humans.As of 26 March 2020, there have been at least 24,065 confirmed deaths and more than 531,630 confirmed cases in the coronavirus pneumonia pandemic. The Wuhan strain has been identified as a new strain of Betacoronavirus from group 2B with approximately 70% genetic similarity to the SARS-CoV. The virus has a 96% similarity to a bat coronavirus, so it is widely suspected to originate from bats as well. The pandemic has resulted in travel restrictions and nationwide lockdowns in several countries. == Other animals == Coronaviruses have been recognized as causing pathological conditions in veterinary medicine since the early 1970s. Except for avian infectious bronchitis, the major related diseases have mainly an intestinal location. === Diseases caused === Coronaviruses primarily infect the upper respiratory and gastrointestinal tract of mammals and birds. They also cause a range of diseases in farm animals and domesticated pets, some of which can be serious and are a threat to the farming industry. In chickens, the infectious bronchitis virus (IBV), a coronavirus, targets not only the respiratory tract but also the urogenital tract. The virus can spread to different organs throughout the chicken. Economically significant coronaviruses of farm animals include porcine coronavirus (transmissible gastroenteritis coronavirus, TGE) and bovine coronavirus, which both result in diarrhea in young animals. Feline coronavirus: two forms, feline enteric coronavirus is a pathogen of minor clinical significance, but spontaneous mutation of this virus can result in feline infectious peritonitis (FIP), a disease associated with high mortality. Similarly, there are two types of coronavirus that infect ferrets: Ferret enteric coronavirus causes a gastrointestinal syndrome known as epizootic catarrhal enteritis (ECE), and a more lethal systemic version of the virus (like FIP in cats) known as ferret systemic coronavirus (FSC). There are two types of canine coronavirus (CCoV), one that causes mild gastrointestinal disease and one that has been found to cause respiratory disease. Mouse hepatitis virus (MHV) is a coronavirus that causes an epidemic murine illness with high mortality, especially among colonies of laboratory mice. Sialodacryoadenitis virus (SDAV) is highly infectious coronavirus of laboratory rats, which can be transmitted between individuals by direct contact and indirectly by aerosol. Acute infections have high morbidity and tropism for the salivary, lachrymal and harderian glands.A HKU2-related bat coronavirus called swine acute diarrhea syndrome coronavirus (SADS-CoV) causes diarrhea in pigs.Prior to the discovery of SARS-CoV, MHV had been the best-studied coronavirus both in vivo and in vitro as well as at the molecular level. Some strains of MHV cause a progressive demyelinating encephalitis in mice which has been used as a murine model for multiple sclerosis. Significant research efforts have been focused on elucidating the viral pathogenesis of these animal coronaviruses, especially by virologists interested in veterinary and zoonotic diseases. === In domestic animals === Infectious bronchitis virus (IBV) causes avian infectious bronchitis. Porcine coronavirus (transmissible gastroenteritis coronavirus of pigs, TGEV). Bovine coronavirus (BCV), responsible for severe profuse enteritis in of young calves. Feline coronavirus (FCoV) causes mild enteritis in cats as well as severe Feline infectious peritonitis (other variants of the same virus). the two types of canine coronavirus (CCoV) (one causing enteritis, the other found in respiratory diseases). Turkey coronavirus (TCV) causes enteritis in turkeys. Ferret enteric coronavirus causes epizootic catarrhal enteritis in ferrets. Ferret systemic coronavirus causes FIP-like systemic syndrome in ferrets. Pantropic canine coronavirus. Rabbit enteric coronavirus causes acute gastrointestinal disease and diarrhea in young European rabbits. Mortality rates are high. Porcine epidemic diarrhea virus (PED or PEDV), has emerged around the world. == Genomic cis-acting elements == In common with the genomes of all other RNA viruses, coronavirus genomes contain cis-acting RNA elements that ensure the specific replication of viral RNA by a virally encoded RNA-dependent RNA polymerase. The embedded cis-acting elements devoted to coronavirus replication constitute a small fraction of the total genome, but this is presumed to be a reflection of the fact that coronaviruses have the largest genomes of all RNA viruses. The boundaries of cis-acting elements essential to replication are fairly well-defined, and the RNA secondary structures of these regions are understood. However, how these cis-acting structures and sequences interact with the viral replicase and host cell components to allow RNA synthesis is not well understood. == Genome packaging == The assembly of infectious coronavirus particles requires the selection of viral genomic RNA from a cellular pool that contains an abundant excess of non-viral and viral RNAs. Among the seven to ten specific viral mRNAs synthesized in virus-infected cells, only the full-length genomic RNA is packaged efficiently into coronavirus particles. Studies have revealed cis-acting elements and trans-acting viral factors involved in the coronavirus genome encapsidation and packaging. Understanding the molecular mechanisms of genome selection and packaging is critical for developing antiviral strategies and viral expression vectors based on the coronavirus genome. == See also == Bat-borne virus Zoonosis == References == == Further reading ==
Hint: You can get the content of the entire page using the above method
Yes, you are right we can get the images from the Wikipedia article. But the catch point here is, we can’t render the whole images here but we can get them as URL’s as shown below:
print(covid.images)
['https://upload.wikimedia.org/wikipedia/commons/8/82/SARS-CoV-2_without_background.png', 'https://upload.wikimedia.org/wikipedia/commons/9/96/3D_medical_animation_coronavirus_structure.jpg', 'https://upload.wikimedia.org/wikipedia/commons/f/f4/Coronavirus_replication.png', 'https://upload.wikimedia.org/wikipedia/commons/e/e5/Coronavirus_virion_structure.svg', 'https://upload.wikimedia.org/wikipedia/commons/d/dd/Phylogenetic_tree_of_coronaviruses.jpg', 'https://upload.wikimedia.org/wikipedia/commons/7/74/Red_Pencil_Icon.png', 'https://upload.wikimedia.org/wikipedia/commons/8/82/SARS-CoV-2_without_background.png', 'https://upload.wikimedia.org/wikipedia/commons/1/11/SARS-CoV_MERS-CoV_genome_organization_and_S-protein_domains.png', 'https://upload.wikimedia.org/wikipedia/commons/2/2f/Sida-aids.png', 'https://upload.wikimedia.org/wikipedia/commons/d/d6/WHO_Rod.svg', 'https://upload.wikimedia.org/wikipedia/commons/9/99/Wiktionary-logo-en-v2.svg', 'https://upload.wikimedia.org/wikipedia/en/4/4a/Commons-logo.svg', 'https://upload.wikimedia.org/wikipedia/commons/7/78/Coronaviruses_004_lores.jpg', 'https://upload.wikimedia.org/wikipedia/en/8/8c/Extended-protection-shackle.svg']
Similarly, we can get the links that Wikipedia used as a reference from different websites or research, etc.
print(covid.links)
['2002–2004 SARS outbreak', '2012 Middle East respiratory syndrome coronavirus outbreak', '2015 Middle East respiratory syndrome outbreak in South Korea', '2018 Middle East respiratory syndrome outbreak', '2019–2020 coronavirus pandemic', '2019–20 coronavirus pandemic', 'Acute bronchitis', 'Adenoid', 'Adenoviridae', 'Adenovirus infection', 'Adult T-cell leukemia/lymphoma', 'Alpaca', 'Alphacoronavirus', 'Anal cancer', 'Ancient Greek', 'Angiotensin-converting enzyme 2', 'Anorexia (symptom)', 'Antiviral drug', 'Arbovirus encephalitis', 'Astrovirus', 'Avian infectious bronchitis', 'Avian infectious bronchitis virus', 'Avian influenza', 'BCE', 'BK virus', 'Bacterial pneumonia', 'Bat', 'Bat-borne virus', 'Bead', 'Beluga whale coronavirus SW1', 'Betacoronavirus', 'Betacoronavirus 1', 'Bibcode', 'Birds', 'Bovine coronavirus', 'Bronchiolitis', 'Bronchitis', 'Bulbul coronavirus HKU11', "Burkitt's lymphoma", 'Canine coronavirus', 'Capsid', 'Cardiovascular disease', 'Central nervous system viral disease', 'Cervical cancer', 'Chandipura vesiculovirus', 'China', 'Christian Drosten', 'Cis-acting', 'Civet', 'Common cold', 'Complication (medicine)', 'Corona', 'Coronaviridae', 'Coronavirus disease 2019', 'Cough', 'Coxsackie B virus', 'Croup', 'Cytomegalovirus', 'Cytomegalovirus esophagitis', 'Cytomegalovirus retinitis', 'Cytoplasm', 'DNA replication', 'DNA virus', 'Deltacoronavirus', 'Diarrhea', 'Digital object identifier', 'Dyspnea', 'Electron microscope', 'Electron microscopy', 'Embecovirus', 'Encapsidation', 'Encephalitis lethargica', 'Encyclopedia of Life', 'Endocytosis', 'Endoplasmic reticulum', 'Enterovirus', 'Enveloped virus', 'Epstein–Barr virus', 'Epstein–Barr virus infection', 'Erasmus MC', 'Esophagus', 'European rabbits', 'Exocytosis', 'Exoribonuclease', 'Extranodal NK/T-cell lymphoma, nasal type', 'Eye disease', 'Fatigue (medical)', 'Feline coronavirus', 'Feline infectious peritonitis', 'Ferret', 'Fever', 'Five-prime cap', 'Five prime untranslated region', 'Follicular dendritic cell sarcoma', 'GB virus C', 'Gammacoronavirus', 'Gastroenteritis', 'Gastrointestinal tract', 'Genitourinary system', 'Genome', 'Genome size', 'HIV', 'HIV/AIDS', 'HPV-positive oropharyngeal cancer', 'Harderian gland', 'Headache', 'Hedgehog coronavirus 1', 'Hemagglutinin esterase', 'Hepacivirus C', 'Hepatitis A', 'Hepatitis B', 'Hepatitis B virus', 'Hepatitis C', 'Hepatitis D', 'Hepatitis E', 'Hepatocellular carcinoma', 'Herpes simplex keratitis', 'Herpes simplex virus', 'Herpesviral meningitis', 'Hipposideridae', "Hodgkin's lymphoma", 'Host (biology)', 'Host tropism', 'Huanan Seafood Wholesale Market', 'Human T-lymphotropic virus 1', 'Human coronavirus 229E', 'Human coronavirus HKU1', 'Human coronavirus NL63', 'Human coronavirus OC43', 'Human digestive system', 'Human metapneumovirus', 'Human orthopneumovirus', 'Human parainfluenza viruses', 'Human polyomavirus 2', 'ICD-10', 'ICD-10 Chapter I: Certain infectious and parasitic diseases', 'Immune disorder', 'Incertae sedis', 'Infection', 'Infectious bronchitis virus', 'Infectious mononucleosis', 'Infectivity', 'Influenza', 'Influenza A virus', 'Influenza B virus', 'Influenza C virus', 'Influenza D virus', 'Interim Register of Marine and Nonmarine Genera', 'International Committee on Taxonomy of Viruses', 'International Standard Book Number', 'International Standard Serial Number', 'International Statistical Classification of Diseases and Related Health Problems', 'Intestinal', "Kaposi's sarcoma", "Kaposi's sarcoma-associated herpesvirus", 'Kilobase', 'Lipid bilayer', 'List of ICD-9 codes 001–139: infectious and parasitic diseases', 'Lower respiratory tract infection', 'Lymphocytic choriomeningitis', 'MERS-CoV', 'Malaise', 'Mammals', 'Measles morbillivirus', 'Merkel-cell carcinoma', 'Merkel cell polyomavirus', 'Messenger RNA', 'Middle East respiratory syndrome', 'Middle East respiratory syndrome-related coronavirus', 'Miniopterus bat coronavirus 1', 'Miniopterus bat coronavirus HKU8', 'Morbidity', 'Morphology (biology)', 'Most recent common ancestor', 'Mouse hepatitis virus', 'Multiple sclerosis', 'Mumps', 'Mumps rubulavirus', 'Murinae', 'Murine coronavirus', 'Mutation', 'Myalgia', 'Myelitis', 'Myocarditis', 'Nasal congestion', 'Nasopharyngeal carcinoma', 'National Center for Biotechnology Information', 'Nidovirales', 'Norovirus', 'Nucleic acid secondary structure', 'Nucleocapsid', 'Oncovirus', 'Orthohepevirus A', 'Orthomyxoviridae', 'Otitis media', 'Outbreaks', 'Pancreatitis', 'Papillomaviridae', 'Paramyxoviridae', 'Penile cancer', 'Peplomer', 'Pericarditis', 'Pharyngitis', 'Pharynx', 'Pipistrellus bat coronavirus HKU5', 'Pleconaril', 'Pleomorphism (microbiology)', 'Pneumonia', 'Polio', 'Poliovirus', 'Polyadenylation', 'Popular Science', 'Porcine', 'Porcine coronavirus HKU15', 'Porcine epidemic diarrhea virus', 'Positive-sense single-stranded RNA virus', 'Post-polio syndrome', 'Progressive multifocal leukoencephalopathy', 'Proofreading (biology)', 'Protease', 'Protein', 'Protein complex', 'Proteins', 'Proteolysis', 'PubMed Central', 'PubMed Identifier', 'RNA', 'RNA-dependent RNA polymerase', 'RNA virus', 'Rabies', 'Rabies virus', 'Ramsay Hunt syndrome type 2', 'Reading frame', 'Republic of Korea', 'Respiratory droplet', 'Respiratory system', 'Respiratory tract infection', 'Respiratory tract infections', 'Rhinolophidae', 'Rhinolophus bat coronavirus HKU2', 'Rhinorrhea', 'Rhinovirus', 'Ribosome', 'Riboviria', 'Rotavirus', 'Rousettus bat coronavirus HKU9', 'SARS-CoV-2', 'SARS coronavirus', 'Science (journal)', 'Scotophilus bat coronavirus 512', 'Severe acute respiratory syndrome', 'Severe acute respiratory syndrome-related coronavirus', 'Severe acute respiratory syndrome coronavirus', 'Severe acute respiratory syndrome coronavirus 2', 'Sinusitis', 'Sneeze', 'Solar corona', 'Sore throat', 'Splenic marginal zone lymphoma', 'Streptococcal pharyngitis', 'Structural proteins', 'Subacute sclerosing panencephalitis', 'Subfamily', 'Susan Baker (virologist)', 'Swine acute diarrhea syndrome coronavirus', 'Symptom', 'Synonym (taxonomy)', 'The New York Times', 'Three prime untranslated region', 'Tissue tropism', 'Transcription (biology)', 'Transmissible gastroenteritis coronavirus', 'Transmission electron micrograph', 'Transmission electron microscopy', 'Tropical spastic paraparesis', 'Tropism', 'Tunisia', 'Turkey coronavirus', 'Turkeys', 'Tylonycteris bat coronavirus HKU4', 'Uncoating', 'Upper respiratory tract', 'Upper respiratory tract infection', 'Urogenital tract', 'Vaccine', 'Vaginal cancer', 'Vesicular-tubular cluster', 'Veterinary medicine', 'Viral disease', 'Viral encephalitis', 'Viral entry', 'Viral envelope', 'Viral hepatitis', 'Viral meningitis', 'Viral pathogenesis', 'Viral pneumonia', 'Viral shedding', 'Virion', 'Virologist', 'Virus', 'Virus classification', 'Vulvar cancer', 'Wayback Machine', 'Weakness', 'Wikidata', 'Wikispecies', 'World Health Organization', 'Wuhan', 'Zoonosis', 'Zoonotic']
So, there you go, you have reached the end of the tutorial of Wikipedia API for Python. To know more methods visit Wikipedia API. I hope you guys had a lot of fun learning and implementing. If you guys have any comments or concerns let me know via the comment section below. Until then Good-Bye.