Actions2
Get Links
AI-generatedOverview
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
- Extracting all related topics linked from a Wikipedia page about a historical event.
- 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
- Wikipedia npm Package - The npm package used to interact with Wikipedia API.
- Wikipedia API Documentation - Official documentation for Wikipedia's API which the node utilizes.