{"id":24506031,"url":"https://github.com/trixsec/rand_agents","last_synced_at":"2025-05-12T19:43:21.859Z","repository":{"id":272876780,"uuid":"918034869","full_name":"TrixSec/rand_agents","owner":"TrixSec","description":"`rand_agents` is a Rust library for generating random user agent strings. It can be used in any Rust project to easily create random user agents for web scraping, testing, or security purposes.","archived":false,"fork":false,"pushed_at":"2025-01-17T06:34:49.000Z","size":9,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T23:56:12.757Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/TrixSec.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}},"created_at":"2025-01-17T05:53:15.000Z","updated_at":"2025-02-15T13:43:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"51ede536-fecf-43f8-9e4f-0f9c0ab091c6","html_url":"https://github.com/TrixSec/rand_agents","commit_stats":null,"previous_names":["trixsec/rand_agents"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrixSec%2Frand_agents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrixSec%2Frand_agents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrixSec%2Frand_agents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrixSec%2Frand_agents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TrixSec","download_url":"https://codeload.github.com/TrixSec/rand_agents/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253809651,"owners_count":21967767,"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","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":[],"created_at":"2025-01-21T23:32:47.580Z","updated_at":"2025-05-12T19:43:21.851Z","avatar_url":"https://github.com/TrixSec.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"**Current Version**: 1.0.0\n**Author**: Trix Cyrus  \n**Copyright**: © 2025 Trixsec Org  \n**Maintained**: Yes\n\n# rand_agents\n\n`rand_agents` is a Rust library for generating random user agent strings. It can be used in any Rust project to easily create random user agents for web scraping, testing, or security purposes.\n\n## Features\n- Generates random user agents for various browsers, operating systems, devices, and webkit versions.\n- Supports a variety of user agents including Mozilla, Opera, and others.\n\n## Installation\n\nTo use `rand_agents` in your Rust project, follow these steps:\n\n### 1. Add `rand_agents` to `Cargo.toml`\n\nIn your Rust project's `Cargo.toml` file, add the following line under `[dependencies]`:\n\n```toml\n[package]\nname = \"my_project\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\nrand_agents = \"1.0.0\"\n```\n\n### 2. Using `rand_agents` in Your Code\n\nIn your `main.rs` (or any other Rust file), add the following code to generate a random user agent:\n\n```rust\nuse rand_agents::user_agent;\n\nfn main() {\n    let user_agent = user_agent();\n    println!(\"Random User Agent: {}\", user_agent);\n}\n```\n\nThis will generate and print a random user agent string to the console.\n\n### 3. Running Your Project\n\nTo run your project, simply use:\n\n```bash\ncargo build\ncargo run\n```\n\nYou should see a randomly generated user agent string.\n\n## Example Output\n\n```bash\nRandom User Agent: Opera/9.27 (Raspbian; Apple MacBook Pro) AppleWebKit/619.1.22 (KHTML, like Gecko) RockMelt/75.0.406 Safari/619.1.22\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrixsec%2Frand_agents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrixsec%2Frand_agents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrixsec%2Frand_agents/lists"}