Skip to content

Implement getLinksHere function modeled on getLinks#36

Open
brianckeegan wants to merge 2 commits intoalexz-enwp:masterfrom
brianckeegan:patch-2
Open

Implement getLinksHere function modeled on getLinks#36
brianckeegan wants to merge 2 commits intoalexz-enwp:masterfrom
brianckeegan:patch-2

Conversation

@brianckeegan
Copy link

Implements functionality from https://www.mediawiki.org/wiki/API:Linkshere

return self.links

def getLinksHere(self, namespace='all', lhshow='all', force=False):
"""Gets a list of all the internal links elsewhere on Wikipedia pointing *to* the page
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessarily Wikipedia. This should probably read "on the wiki" or similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants