#twitter #reverse #engineered #rate-limiting #search #api #user

reverse-engineered-twitter-api

Reverse Engineered Twitter API

5 releases

0.1.4 Nov 27, 2023
0.1.3 Jul 24, 2023
0.1.2 Jul 23, 2023
0.1.1 Jul 22, 2023
0.1.0 Jul 22, 2023

#21 in #twitter

Download history 1/week @ 2024-07-26 7/week @ 2024-09-20 6/week @ 2024-09-27 2/week @ 2024-10-04

75 downloads per month

MIT license

60KB
1.5K SLoC

crates.io Downloads crates.io

ReverseEngineeredTwitterAPI

Reverse engineered Twitter's API has not a lots of limitations, the rate limit is consistent with regular users logging in through the twitter website, and there is no need to consider payment issues.

Installation

[dependencies]
reverse-engineered-twitter-api = "0.1.3"

Usage

Login

let mut api = ReAPI::new();
let name = std::env::var("TWITTER_USER_NAME").unwrap();
let pwd = std::env::var("TWITTER_USER_PASSWORD").unwrap();

// If no verification code is required, set it to empty
let confirmation_code = "";
api.login(&name, &pwd, confirmation_code).await

// check if account is logged in
let is_logged_in = api.is_logged_in().await;
// search tweets
let content = "@lidangzzz -filter:retweets";
let limit = 50;
let cursor = "";
api.search_tweets(content, limit, cursor).await;

Dependencies

~8–20MB
~288K SLoC