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.2"

Usage

Login

``` let mut api = ReAPI::new(); let name = std::env::var("TWITTERUSERNAME").unwrap(); let pwd = std::env::var("TWITTERUSERPASSWORD").unwrap();

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

// check if account is logged in let isloggedin = api.isloggedin().await; ```

Search

// search tweets let content = "@lidangzzz -filter:retweets"; let limit = 50; let cursor = ""; api.search_tweets(content, limit, cursor).await;