n8n-nodes-xclient
v0.1.0
Published
n8n node to scrape tweets from Twitter/X profiles
Maintainers
Readme
n8n Twitter Scraper Node
This n8n node provides the ability to scrape tweets from Twitter/X profiles without using the official API.
Features
- Scrape tweets from multiple Twitter profiles
- Control the number of tweets to fetch per profile
- Include or exclude retweets and replies
- Save results to a file or return them directly
Installation
- Clone this repository
- Navigate to the n8n-nodes-Xclient directory
- Run
npm installto install dependencies - Run
npm run buildto compile the TypeScript code - Install the node in your n8n installation:
npm install -g path/to/n8n-nodes-Xclient
Configuration
You'll need to provide Twitter credentials to use this node:
- Username and password for Twitter account
- Email address (optional, for certain authentication methods)
- Two-factor authentication secret (if enabled)
- API credentials (optional, for V2 functionality)
Importing Profiles
You can import Twitter profiles in three ways:
- Enter Manually: Provide a comma-separated list of Twitter handles
- From JSON File: Specify a path to a JSON file containing an array of Twitter handles
- From Input Item: Use a field from the input data that contains Twitter handles
Output
The node will output a JSON object containing:
- Success status
- List of scraped profiles
- Total number of tweets fetched
- Tweet data for each profile
- Output file path (if saving to file was enabled)
Troubleshooting
Parent Project Build Issues
If you're developing with this node and encounter build issues in the parent project related to ES module imports, you can use the included fix script:
npm run fix-parentThis script adds .js extensions to relative imports in the parent project's _module.ts file, which is required when using ES modules with the NodeNext module resolution strategy.
License
MIT
