Wikipedia icon

Wikipedia

Wikipedia Node

Get Links

AI-generated

Overview

This node interacts with Wikipedia to retrieve links from a specified Wikipedia page. It is useful for scenarios where you want to extract all the hyperlinks present on a Wikipedia page, such as for research, data collection, or content analysis.

Use Case Examples

  1. Extracting all related topics linked from a Wikipedia page about a historical event.
  2. Gathering references and related articles linked from a Wikipedia page for further exploration.

Properties

Name Meaning
Page Name The title of the Wikipedia page from which to retrieve links.
Auto Suggest Whether to use Wikipedia's auto-suggestion feature to find the closest matching page if the exact page name is not found.
Redirect Whether to follow redirects if the specified page name redirects to another page.

Output

JSON

  • pageName - The name of the Wikipedia page queried.
  • links - An array or object containing the links found on the specified Wikipedia page.

Dependencies

  • Wikipedia API accessed via the 'wikipedia' npm package

Troubleshooting

  • If the specified page name is incorrect or does not exist, the node may throw an error unless 'Auto Suggest' is enabled to find the closest match.
  • If the node fails to retrieve links, check internet connectivity and Wikipedia API availability.
  • Errors related to redirects can be resolved by toggling the 'Redirect' property to true or false depending on the desired behavior.

Links

Discussion