{"id":23452313,"url":"https://github.com/maxam2017/daily-ptt-login","last_synced_at":"2025-04-10T16:55:49.330Z","repository":{"id":109003533,"uuid":"595134161","full_name":"maxam2017/daily-ptt-login","owner":"maxam2017","description":"wip 👷","archived":false,"fork":false,"pushed_at":"2023-01-30T13:23:03.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-15T20:41:42.305Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/maxam2017.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":"2023-01-30T13:20:52.000Z","updated_at":"2023-03-07T11:16:47.000Z","dependencies_parsed_at":"2023-05-19T21:15:47.151Z","dependency_job_id":null,"html_url":"https://github.com/maxam2017/daily-ptt-login","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxam2017%2Fdaily-ptt-login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxam2017%2Fdaily-ptt-login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxam2017%2Fdaily-ptt-login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxam2017%2Fdaily-ptt-login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxam2017","download_url":"https://codeload.github.com/maxam2017/daily-ptt-login/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248257982,"owners_count":21073833,"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-12-24T01:14:51.037Z","updated_at":"2025-04-10T16:55:49.308Z","avatar_url":"https://github.com/maxam2017.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Daily PTT Login\n\n## Try 1: web socket\n\n\u003e see [3fea641](https://github.com/maxam2017/daily-ptt-login/commit/3fea6415c1c655c505e245dd5a401a303fb1e957)\n\nWeb sockets are the most natural way to use PPT, and **PyPTT** is the best and most comprehensive third-party library for this purpose.\nI decided to use the Python-supporting Vercel serverless function as a result. and failed.\n\nBecause web sockets are consistent connections, Vercel serverless function does not support them. I therefore choose a different approach.\n\n## Try 2: headless / headed browser\n\n\u003e see [f7f6a15](https://github.com/maxam2017/daily-ptt-login/commit/f7f6a15b692b16ea1f1f5a8719e555c7149f38ef)\n\nAnother option is to use Chromium (/w Playwright or Puppeteer), although at the moment serverless functions can only execute for 10 seconds on the free plan. We finally get a break.\n\n## Try 3: self hosted\n\n\u003e TBC.\n\nThis, I believe, is the only option. I hope I can come up with a better solution 🌟\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxam2017%2Fdaily-ptt-login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxam2017%2Fdaily-ptt-login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxam2017%2Fdaily-ptt-login/lists"}