{"id":19387911,"url":"https://github.com/helloxz/v2ex-luck","last_synced_at":"2026-03-19T09:35:53.504Z","repository":{"id":79888555,"uuid":"479255697","full_name":"helloxz/v2ex-luck","owner":"helloxz","description":"V2EX楼层抽奖","archived":false,"fork":false,"pushed_at":"2022-04-08T05:57:52.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-21T11:45:48.495Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/helloxz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-04-08T05:26:15.000Z","updated_at":"2022-08-15T15:42:19.000Z","dependencies_parsed_at":"2025-11-24T01:02:37.512Z","dependency_job_id":null,"html_url":"https://github.com/helloxz/v2ex-luck","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/helloxz/v2ex-luck","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloxz%2Fv2ex-luck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloxz%2Fv2ex-luck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloxz%2Fv2ex-luck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloxz%2Fv2ex-luck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/helloxz","download_url":"https://codeload.github.com/helloxz/v2ex-luck/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helloxz%2Fv2ex-luck/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29179567,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T22:12:24.066Z","status":"ssl_error","status_checked_at":"2026-02-06T22:12:09.859Z","response_time":59,"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":[],"created_at":"2024-11-10T10:11:05.639Z","updated_at":"2026-02-06T23:02:46.904Z","avatar_url":"https://github.com/helloxz.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# v2ex-luck\n\nV2EX T楼抽奖\n\n## 使用方法\n\n首先通过浏览器F12工具获取HTML节点，\n\n![](https://img.rss.ink/imgs/2022/04/08/fe293aabe7508979.png)\n\n```html\n\u003cdiv class=\"box\"\u003e\n...\n\u003c/div\u003e\n```\n\n然后将HTML内容存到一个文本中，比如`v2ex.txt`\n\n\n\n最后使用shell随机抽取3名幸运用户：\n\n```bash\ngrep -oh 'member/.*\u003c/a\u003e' v2ex.txt|grep -v \"xiaoz\"|grep -v \"@\"|grep -oh \"\u003e[a-zA-Z0-9]*\u003c\"|grep -o \"[a-zA-Z0-9]*\"|uniq|shuf -n3\n```\n\n1. 正则筛选出所有楼层用户\n\n2. 去除自己的楼层账号`xiaoz`\n\n3. `uniq`去重重复楼层的用户\n\n4. `shuf`随机抽取3行作为幸运用户\n\n\n\n![](https://img.rss.ink/imgs/2022/04/08/a63f5897e74e4885.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelloxz%2Fv2ex-luck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhelloxz%2Fv2ex-luck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelloxz%2Fv2ex-luck/lists"}