I am using the Wikipedia API for python to get page links as follows:
import wikipedia
ny = wikipedia.page(wikipedia.search("Barack Obama")[0])
print ny.links
This ny.links
provides all the links (inlinks and outlinks together), but I need them separately. Could anyone please help me finding some means to achieve this using the same API or some other APIs?