junhoyeo / threads-api

Unofficial, Reverse-Engineered Node.js/TypeScript client for Meta's Threads. Web UI Included.
https://threads.junho.io
MIT License
1.58k stars 134 forks source link

An example of proxy HTTP agent? 429 error #303

Open massanishi opened 10 months ago

massanishi commented 10 months ago

I'm getting 429 error. I'm trying with proxy agent, but it's not working. Do you have a working example?

This is my current implementation.

import { ThreadsAPI } from 'threads-api';
import { HttpProxyAgent } from 'http-proxy-agent';

const proxyAgent = new HttpProxyAgent('http://2.56.119.93:5074');

const threadsAPI = new ThreadsAPI({
  httpAgent: proxyAgent,
});

const userId = await threadsAPI.getUserIDfromUsername(username);
0xF7A4C6 commented 10 months ago

Your proxy is ratelimited.