{"id":30610266,"url":"https://github.com/ztgx/xplore","last_synced_at":"2025-08-30T04:39:40.687Z","repository":{"id":279426412,"uuid":"938771223","full_name":"zTgx/xplore","owner":"zTgx","description":"Xplore is a scraper for Twitter/X without using API in Rust.","archived":false,"fork":false,"pushed_at":"2025-07-11T16:36:24.000Z","size":300,"stargazers_count":17,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-16T01:34:35.170Z","etag":null,"topics":["automation","bot","rust","scraper","scraping","twitter","twitter-api","twitter-bot","twitter-client","x","x-client"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zTgx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-25T13:30:32.000Z","updated_at":"2025-08-13T04:09:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"d998dbf4-1cec-4611-a692-cd0e9f08f447","html_url":"https://github.com/zTgx/xplore","commit_stats":null,"previous_names":["solagent-rs/xplore"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zTgx/xplore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zTgx%2Fxplore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zTgx%2Fxplore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zTgx%2Fxplore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zTgx%2Fxplore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zTgx","download_url":"https://codeload.github.com/zTgx/xplore/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zTgx%2Fxplore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272805487,"owners_count":24995909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","bot","rust","scraper","scraping","twitter","twitter-api","twitter-bot","twitter-client","x","x-client"],"created_at":"2025-08-30T04:39:39.920Z","updated_at":"2025-08-30T04:39:40.682Z","avatar_url":"https://github.com/zTgx.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# xplore   \nX scraper for Rust\n\n[![Version](https://img.shields.io/crates/v/xplore)](https://crates.io/crates/xplore)\n![Crates Downloads](https://img.shields.io/crates/d/xplore?logo=rust)\n![GitHub License](https://img.shields.io/github/license/solagent-rs/xplore)\n\n\u003c/div\u003e\n\n\u003e\u003e 💥 PRs are welcome.   \n\u003e\u003e ❗We are still in the early development phase, so please be aware that the interfaces may evolve as we continue to refine the project.\n\n## Features\n- Authentication with cookies\n- Comprehensive user profile management\n- Timeline retrieval\n- Tweet interactions (like, retweet, post)\n- Advanced search capabilities\n- User relationship management (follow/unfollow)\n\n## Installation\n```toml\n[dependencies]\nxplore = \"0.1\"\n```\n\n## Usage\nTwo method to authenticate with Cookie:\n* By using `login`\n```rust\nlet mut xplore = Xplore::new(None).await.unwrap();\n\nxplore.login(username, password, email, two_factor_secret).await;\n```\n\nOR\n\n* By using `set_cookie`\n```rust\nlet mut xplore = Xplore::new(None).await.unwrap();\n\nlet cookie = env::var(\"X_COOKIE_STRING\").expect(\"X_COOKIE_STRING\");\nxplore.set_cookie(\u0026cookie).await;\n```\n\n---\n\u003e [!IMPORTANT]\n\u003e **How to Get Request Cookie for Authentication**\n\u003e \n\u003e **Steps to Retrieve Cookie:**\n\u003e 1. Open Chrome Developer Tools:\n\u003e    - Press `F12` or `Fn+F12` (depending on your keyboard)\n\u003e    - Alternatively: Right-click → \"Inspect\" → \"Network\" tab\n\u003e \n\u003e 2. Locate the Request:\n\u003e    - Filter requests and select `user_flow.json`\n\u003e    - Navigate to the \"Headers\" section\n\u003e \n\u003e 3. Copy Cookie Value:\n\u003e    - Under \"Request Headers\" → Find the \"Cookie\" field\n\u003e    - Select and copy the entire cookie string\n\u003e \n\u003e 4. Configure Environment:\n\u003e    - Paste the copied value in your `.env` file:\n\u003e      ```env\n\u003e      X_COOKIE_STRING=your_copied_cookie_value_here\n\u003e      ```\n\u003e \n\u003e **Note:** This cookie is used for authentication - keep it secure and never commit to version control.\n\n--- \n\n### A quick start\n```rust\nuse dotenv::dotenv;\nuse std::env;\nuse xplore::Xplore;\n\n#[tokio::main]\nasync fn main() {\n    dotenv().ok();\n\n    let mut xplore = Xplore::new(None).await.unwrap();\n\n    let cookie = env::var(\"X_COOKIE_STRING\").expect(\"X_COOKIE_STRING\");\n    xplore.set_cookie(\u0026cookie).await;\n\n    let screen_name = \"zTgx5\"; // Replace with the desired screen name\n    println!(\"Getting profile for: {screen_name}\");\n    let profile = xplore.get_profile(screen_name).await.expect(\"Failed to get profile\");\n    println!(\"Profile: {profile:#?}\");\n}\n```\n\n## Star History\n[![Star History Chart](https://api.star-history.com/svg?repos=zTgx/xplore\u0026type=Date)](https://www.star-history.com/#zTgx/xplore\u0026Date)\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fztgx%2Fxplore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fztgx%2Fxplore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fztgx%2Fxplore/lists"}