wekeypedia
  • Information retrieval
    • Retrieve and extract information of a wikipedia page
    • Make custom queries to the wikipedia api
    • wikipedia user
  • Computing metrics
    • Linguistic Style Matching
 
wekeypedia
  • Docs »
  • Information retrieval »
  • Retrieve and extract information of a wikipedia page »
  • get_links
  • Edit on GitHub

get_links¶

WikipediaPage.get_links(extra_params={})¶

Retrieve links contained by a wikipedia page according to the API

Parameters:extra_params (dict, optional) –

By default, the method will only retrieve links from the namespace 0 (usual pages) and skipped everything like templates, etc.

You can still get the other namespaces by updating the query with an extra parameters.

>>> p.get_links({ plnamspace: 12 })
Returns:links
Return type:list
Next Previous

© Copyright 2015, tam kien duong.

Built with Sphinx using a theme provided by Read the Docs.