Enable X/Twitter accounts to start scraping

As a Masa Subnet 42 miner, you can fulfill data requests by either using your X/Twitter login credentials or an X/Twitter API key. This guide will show you how to configure your miner using X/Twitter account credentials (username/password authentication) within your .env file.

An X/Twitter Pro Account is required

A paid X/Twitter Pro Account is absolutely necessary for scraping X/Twitter data. Ensure you have obtained a paid Twitter Pro Account before proceeding with the configuration.

Enter Your X/Twitter Account login credentials in the .env file

Add the following line to your .env file, replacing username1:password1,username2:password2 with your actual X/Twitter account credentials:

TWITTER_ACCOUNTS=username1:password1,username2:password2
It is highly recommended to use multiple accounts to avoid being rate limited or banned by X/Twitter. We recommend a minimum of 3. Some top miners have up to 16 or more.

Do not use Twitter accounts that you care about, since there is a small risk of them being suspended.