Actions7
- Tweet Actions
- User Actions
Overview
This node, named "X Scraper by Lab3," allows users to interact with the social media platform X (formerly Twitter) by scraping and performing actions on tweets and users. Specifically for the Retweet operation under the Tweet resource, the node enables users to retweet a specified tweet programmatically.
Common scenarios where this node is beneficial include:
- Automating engagement workflows by retweeting specific tweets based on triggers or conditions.
- Integrating retweet functionality into broader automation pipelines without manual intervention.
- Managing social media interactions at scale, such as retweeting posts from certain accounts or containing specific hashtags.
Practical example:
- Automatically retweeting tweets from a particular user or containing a keyword whenever they appear in your feed or are detected by another system.
Properties
| Name | Meaning |
|---|---|
| Tweet | The tweet to retweet. Can be specified either by its unique ID or by providing the URL of the tweet. |
The "Tweet" property supports two modes for identifying the tweet:
- By ID: Provide the tweet's unique identifier (e.g.,
1187836157394112513). - By URL: Provide the full URL of the tweet (e.g.,
https://x.com/n8n_io/status/1187836157394112513).
Output
The output of the Retweet operation is a JSON object containing a confirmation message indicating success. For example:
{
"json": "Tweet has been successfully retweeted"
}
No binary data is output by this operation.
Dependencies
- Requires an API key credential with appropriate authentication tokens and cookies (
guest_id,kdt,twid,ct0,auth_token) to access the X platform. - The node depends on an internal scraper library that handles authentication and interaction with the X platform.
- Proper configuration of these credentials within n8n is mandatory before using the node.
Troubleshooting
- Missing Credentials Error: If any required authentication tokens or cookies are missing, the node will throw an error listing which credentials are absent. Ensure all required fields are correctly set in the credential configuration.
- Failed to Initialize Scraper: This error indicates issues during the setup of the scraper instance, possibly due to invalid or expired credentials. Refresh or re-enter credentials if encountered.
- Operation Failures: If the retweet action fails (e.g., due to invalid tweet ID, deleted tweet, or permission issues), the node will throw an error unless "Continue On Fail" is enabled, in which case it outputs the error message in the JSON field.
- Invalid Tweet Identifier: Providing an incorrect tweet ID or malformed URL may cause the node to fail. Verify the input format matches expected patterns.