Crates.io | reverse-engineered-twitter-api |
lib.rs | reverse-engineered-twitter-api |
version | 0.1.4 |
source | src |
created_at | 2023-07-22 16:53:00.869103 |
updated_at | 2023-11-27 10:21:56.902992 |
description | Reverse Engineered Twitter API |
homepage | |
repository | https://github.com/Amovane/ReverseEngineeredTwitterAPI |
max_upload_size | |
id | 923336 |
size | 59,201 |
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.
[dependencies]
reverse-engineered-twitter-api = "0.1.3"
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;