https://github.com/0xjuancito/who-is-in-lens
Find your friends from Twitter in Lens Protocol 🌿
https://github.com/0xjuancito/who-is-in-lens
lens lens-protocol lensprotocol twitter
Last synced: 5 months ago
JSON representation
Find your friends from Twitter in Lens Protocol 🌿
- Host: GitHub
- URL: https://github.com/0xjuancito/who-is-in-lens
- Owner: 0xJuancito
- Created: 2022-08-17T02:04:11.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-15T16:29:44.000Z (almost 3 years ago)
- Last Synced: 2025-05-07T16:16:49.024Z (5 months ago)
- Topics: lens, lens-protocol, lensprotocol, twitter
- Language: TypeScript
- Homepage: https://inlens.xyz
- Size: 849 KB
- Stars: 10
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# who-is-in-lens
Find your friends from Twitter in [Lens Protocol](https://lens.xyz/) 🌿
🕸 For the website repository you can visit [inlens](https://github.com/0xJuancito/inlens)
## Description
`who-is-in-lens` checks the list of people you are _following_ on Twitter, and scans their name and description to find any `.lens` handle. It also looks for `.eth` ENS names and checks if the person has a Lens profile associated to it.
## Prerequisites
- Node.js
- API Bearer Token from a Twitter Developer Account
- API key for Ethereum and Polygon providers (Infura/Alchemy/Other)## Configuration
- Create an `.env` file with the following attributes:
- `TWITTER_API_BEARER_TOKEN` for retrieving the following list
- `ETH_PROVIDER_URL` for resolving `.eth` ENS names
- `POLYGON_PROVIDER_URL` for looking for associated Lens profiles in the Lens contract## Use
Replace `{twitterHandle}` with the corresponding handle:
```
$ ts-node src/find-friends.ts {twitterHandle}
```
## Limits
- Twitter API limits _following_ requests to 15 per 15 min and username->id to 300 per 15min
- Requests to resolve `.eth` names + lens profiles are all made in parallel. They may be subject to limits if too many users are queried at the same time