2.1.5 • Published 2 years ago

who-is-in-lens v2.1.5

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

who-is-in-lens

Find your friends from Twitter in Lens Protocol 🌿

🕸 For the website repository you can visit 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
2.1.4

2 years ago

2.1.3

2 years ago

2.1.5

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

2.1.2

2 years ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago