I would like to use only the medical data from Wikipedia for analysis. I use python for cleaning. I used this library to search for a word in a query:
import wikipedia
import requests
import pprint
from bs4 import BeautifulSoup
wikipedia.set_lang("en")
query = raw_input()
WikiPage = wikipedia.page(title = query,auto_suggest = True)
cat = WikiPage.categories
for i in cat:
print i
and get categories.
But my problem is that:
I want to give a category, for example: medical or medical terminology, and get all the articles of this type.
How can i do this?
source
share