stochasticcrap
stochasticcrap

Reputation: 358

Pywikibot get links used in the main text

Is it possible to return the only the article hyperlinks used in the content text of a wiki page using Pywikibot? I have tried iterwikilinks() but that doesn't return the correct links I am looking for. Is there another method or API call?

Upvotes: 3

Views: 428

Answers (1)

dafnahaktana
dafnahaktana

Reputation: 857

You might look for:

pywikibot.Page.linkedPages()

Upvotes: 3

Related Questions