I am trying to pull all links from a Wikimedia page for famous painters such as Caravaggio with the Python Wikipedia module.
import wikipedia
page = wikipedia.page("caravaggio")
links = page.links
However the .links
method only returns titles of links, not the actual href
or src
that I can use to display the image on my page.
Is it better to use import beautifulsoup
for this?