Giter Site home page Giter Site logo

who-is-in-lens's Introduction

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}

Screen Shot 2022-08-17 at 19 46 41

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

who-is-in-lens's People

Contributors

0xjuancito avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.