{"id":17361816,"url":"https://github.com/dext7r/teascript","last_synced_at":"2025-03-27T16:45:41.660Z","repository":{"id":245523982,"uuid":"812398841","full_name":"dext7r/teascript","owner":"dext7r","description":"teaScript 是一个基于 Node.js 的puppeteer脚本，用于自动化撸空投tea任务。","archived":false,"fork":false,"pushed_at":"2024-06-22T03:48:05.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T20:27:31.318Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/dext7r.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":"2024-06-08T19:22:36.000Z","updated_at":"2024-06-28T12:34:22.000Z","dependencies_parsed_at":"2024-06-22T15:47:08.646Z","dependency_job_id":"a0a94b6a-716c-46a9-a03b-220aab65e05b","html_url":"https://github.com/dext7r/teascript","commit_stats":null,"previous_names":["h7ml/teascript","dext7r/teascript"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dext7r%2Fteascript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dext7r%2Fteascript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dext7r%2Fteascript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dext7r%2Fteascript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dext7r","download_url":"https://codeload.github.com/dext7r/teascript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245887788,"owners_count":20688893,"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":"2024-10-15T19:35:28.676Z","updated_at":"2025-03-27T16:45:41.630Z","avatar_url":"https://github.com/dext7r.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# teaScript\r\n\r\n## 介绍\r\n\r\nteaScript 是一个基于 Node.js 的puppeteer脚本，用于自动化撸空投tea任务。\r\n\r\n\r\n## 使用\r\n\r\n### 安装\r\n\r\n```bash\r\ngit clone https://github.com/h7ml/teaScript.git\r\n```\r\n\r\n### 依赖\r\n\r\n```bash\r\npnpm i\r\n```\r\n\r\n## 配置\r\n\r\n### .env\r\n\r\n在根目录新建`.env`文件\r\n写入`SEARCH_TARGETS=xxx`\r\nxxx为`npm scope`的包前缀，例如包名`@dext7r/hooks`,则`SEARCH_TARGETS=dext7r`,支持多个包前缀`SEARCH_TARGETS=dext7r,h7ml`，使用`,`分割 \r\n\r\n### localstore.json\r\n\r\n在`config`目录下新建`localstore.json`文件，写入内容为[https://app.tea.xyz/my-projects](https://app.tea.xyz/my-projects)的`localstore`。可以通过打开控制台输入以下代码获取\r\n\r\n```js\r\nlet store = {};\r\n\r\nfor (let i = 0; i \u003c localStorage.length; i++) {\r\n    let key = localStorage.key(i);\r\n    let value = localStorage.getItem(key);\r\n\r\n    try {\r\n        value = JSON.parse(value);\r\n    } catch (e) {\r\n    }\r\n    store[key] = value;\r\n}\r\nconsole.log(store)\r\nwindow.copy(store)\r\n```\r\n\r\n## 运行\r\n\r\n### 获取所有的npm包\r\n\r\n```bash\r\npnpm getpkg\r\n```\r\n\r\n### 自动化申请\r\n\r\n```bash\r\npnpm start\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdext7r%2Fteascript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdext7r%2Fteascript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdext7r%2Fteascript/lists"}