xplore
X scraper for Rust
💥 PRs are welcome.
❗We are still in the early development phase, so please be aware that the interfaces may evolve as we continue to refine the project.
Features
- Authentication with cookies
- Comprehensive user profile management
- Timeline retrieval
- Tweet interactions (like, retweet, post)
- Advanced search capabilities
- User relationship management (follow/unfollow)
Installation
[]
= "0.1"
Usage
Two method to authenticate with Cookie:
- By using
login
let mut xplore = new.await.unwrap;
xplore.login.await;
OR
- By using
set_cookie
let mut xplore = new.await.unwrap;
let cookie = var.expect;
xplore.set_cookie.await;
[!IMPORTANT] How to Get Request Cookie for Authentication
Steps to Retrieve Cookie:
Open Chrome Developer Tools:
- Press
F12orFn+F12(depending on your keyboard)- Alternatively: Right-click → "Inspect" → "Network" tab
Locate the Request:
- Filter requests and select
user_flow.json- Navigate to the "Headers" section
Copy Cookie Value:
- Under "Request Headers" → Find the "Cookie" field
- Select and copy the entire cookie string
Configure Environment:
- Paste the copied value in your
.envfile:X_COOKIE_STRING=your_copied_cookie_value_hereNote: This cookie is used for authentication - keep it secure and never commit to version control.
A quick start
use dotenv;
use env;
use Xplore;
async
Star History
License
MIT