This tool is used for the following purposes:
- Get the Twitter username by ethereum wallet address
- Get the ENS name by ethereum wallet address
pnpm install
First of all, you need to create a .env
file in the packages/core
directory of the project and fill it with the data from .env.example.
After that add your own values to the .env
file:
SCRAPER_URL=your_scraper_url
TWITTER_API_KEY=your_twitter_api_key
ETHEREUM_NODE_URL=your_ethereum_node_url
About the SCRAPER_URL
– we used this utility with our own FastAPI wrapper.
It was used as a workaround for the Cloudflare protection to get Twitter username from OpenSea.
For local development, you can start the docker container with the database, kafka and kafkaui using the following command:
docker-compose up -d
To start the application, use the following command:
pnpm run dev:core
To test the application, use one of the following commands:
- To check that your Twitter API key is valid:
# it should return Twitter username for user id 1447889684508540936
curl -X GET http://localhost:8000/twitter
- To get the Twitter username by ethereum wallet addresses(csv file):
curl -X POST http://localhost:8000/produce