Actions2
Get Content
AI-generatedOverview
This node interacts with Wikipedia to fetch content from a specified Wikipedia page. It is useful for scenarios where users want to retrieve detailed information or text content from Wikipedia pages programmatically. For example, it can be used in data enrichment workflows, content aggregation, or research automation to get the main content of a Wikipedia article based on the page name.
Use Case Examples
- Retrieve the full content of the Wikipedia page for 'Artificial Intelligence' to use in a knowledge base.
- Fetch content from a Wikipedia page dynamically based on user input in an automation workflow.
Properties
| Name | Meaning |
|---|---|
| Page Name | The title of the Wikipedia page from which to retrieve content. |
| 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 requested.content- The main content text retrieved from the Wikipedia page.
Dependencies
- Wikipedia API accessed via the 'wikipedia' npm package
Troubleshooting
- If the specified page name does not exist or is misspelled, the node may throw an error unless 'Auto Suggest' is enabled to find the closest match.
- Errors related to network or API access may occur if there is no internet connection or if Wikipedia API is temporarily unavailable.
- If 'Redirect' is set to false and the page name is a redirect, the content may not be as expected; enabling redirect follows the target page.
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 indirectly uses.