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:
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.
How to locate your X/Twitter username
How to locate your X/Twitter username
To find your X/Twitter username, follow these steps:
- Open X/Twitter and log in to your account.
- Click on your profile picture in the top right corner to open the dropdown menu.
- Select “Profile” from the dropdown menu.
- Your username will be displayed on your profile page, right below your display name. It is the text that starts with ”@”.
- When entering your username in the
.env
file, do not include the ”@” symbol.
If your username or password contains special characters, you may need to enclose them in quotes or escape the special characters in the
.env
file to ensure they are interpreted correctly.How are cookies generated with various accounts?
How are cookies generated with various accounts?
Disabling Two-Factor Auth (2FA) to prevent login issues
Disabling Two-Factor Auth (2FA) to prevent login issues
Disabling Two-Factor Authentication (2FA) on your X/Twitter accounts is crucial to avoid login issues during the scraping process. Follow these steps to disable 2FA:
- Open X/Twitter and log in to your account.
- Click on your profile picture in the top right corner to open the dropdown menu.
- Select “Settings and privacy” from the dropdown menu.
- In the “Settings” section, click on “Security and account access”.
- Click on “Security”.
- Under “Two-factor authentication”, you will see the methods you have enabled (e.g., Text message, Authentication app, Security key).
- Disable all the enabled methods by unchecking them or following the prompts to turn them off.
Disabling 2FA reduces the security of your X/Twitter account. Ensure that you are comfortable with this change and understand the risks involved.