{"id":18747767,"url":"https://github.com/lhlyu/random_user_agents","last_synced_at":"2026-04-29T15:03:22.898Z","repository":{"id":248232351,"uuid":"828144982","full_name":"lhlyu/random_user_agents","owner":"lhlyu","description":"A flutter package for generating random user agents. 随机生成User-Agent.","archived":false,"fork":false,"pushed_at":"2026-04-15T00:36:12.000Z","size":417,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-04-15T01:17:20.994Z","etag":null,"topics":["flutter","random-generation","user-agents"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/random_user_agents","language":"Dart","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/lhlyu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-07-13T08:51:51.000Z","updated_at":"2026-04-15T00:36:16.000Z","dependencies_parsed_at":"2024-07-13T18:48:47.704Z","dependency_job_id":"5cb4173c-accf-4cfd-b85c-17397bf8a5fc","html_url":"https://github.com/lhlyu/random_user_agents","commit_stats":null,"previous_names":["lhlyu/flutter_random_user_agents","lhlyu/random_user_agents"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/lhlyu/random_user_agents","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lhlyu%2Frandom_user_agents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lhlyu%2Frandom_user_agents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lhlyu%2Frandom_user_agents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lhlyu%2Frandom_user_agents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lhlyu","download_url":"https://codeload.github.com/lhlyu/random_user_agents/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lhlyu%2Frandom_user_agents/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32430803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T13:34:34.882Z","status":"ssl_error","status_checked_at":"2026-04-29T13:34:29.830Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["flutter","random-generation","user-agents"],"created_at":"2024-11-07T16:31:21.538Z","updated_at":"2026-04-29T15:03:22.878Z","avatar_url":"https://github.com/lhlyu.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Random_User_Agents\n\n[![pub package](https://img.shields.io/pub/v/random_user_agents.svg)](https://pub.dev/packages/random_user_agents)\n\nA dart library for generating random user agents.\n随机生成User-Agent.\n\n\n## Getting started\n\n```shell \ndart pub add random_user_agents\n```\n\n```shell \nflutter pub add random_user_agents\n```\n\n## Usage\n\n\n```dart\nimport 'package:random_user_agents/random_user_agents.dart';\n\nvoid main() {\n  /// direct use\n  /// 直接使用\n  final ua = RandomUserAgents.random();\n  print(ua);\n  // output: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36\n\n  /// with filter function\n  /// 使用自定义过滤函数\n  final u = RandomUserAgents((value) {\n    return value.contains(\"Android\");\n  });\n  print(u.getUserAgent());\n  // output: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Mobile Safari/537.36\n\n  /// without filter function\n  /// 无过滤函数\n  final r = RandomUserAgents();\n  print(r.getUserAgent());\n  // output: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Safari/605.1.15\n}\n```\n\n## Acknowledgments\n\n- Data source [intoli/user-agents](https://github.com/intoli/user-agents)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flhlyu%2Frandom_user_agents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flhlyu%2Frandom_user_agents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flhlyu%2Frandom_user_agents/lists"}