{"id":20878890,"url":"https://github.com/perongh/ebridge-timetable","last_synced_at":"2025-12-11T21:11:40.727Z","repository":{"id":58791108,"uuid":"533718134","full_name":"PeronGH/ebridge-timetable","owner":"PeronGH","description":"XJTLU e-Bridge timetable parser that can generate .ics file from HTML page","archived":false,"fork":false,"pushed_at":"2023-02-20T05:27:41.000Z","size":32,"stargazers_count":5,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-24T17:53:18.640Z","etag":null,"topics":["deno","typescript","xjtlu"],"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/PeronGH.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}},"created_at":"2022-09-07T10:34:35.000Z","updated_at":"2025-09-02T05:28:09.000Z","dependencies_parsed_at":"2022-09-08T14:40:20.367Z","dependency_job_id":null,"html_url":"https://github.com/PeronGH/ebridge-timetable","commit_stats":null,"previous_names":["perongh/timetable-parser"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/PeronGH/ebridge-timetable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeronGH%2Febridge-timetable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeronGH%2Febridge-timetable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeronGH%2Febridge-timetable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeronGH%2Febridge-timetable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PeronGH","download_url":"https://codeload.github.com/PeronGH/ebridge-timetable/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeronGH%2Febridge-timetable/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27670307,"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","status":"online","status_checked_at":"2025-12-11T02:00:11.302Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["deno","typescript","xjtlu"],"created_at":"2024-11-18T07:14:31.559Z","updated_at":"2025-12-11T21:11:40.680Z","avatar_url":"https://github.com/PeronGH.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# e-Bridge Timetable to .ics file\n\n### Basic Usage\n\n1. Install deno\n2. Download source code\n3. Prepare the .html file of e-bridge timetable and rename it to `XJTLU e-Bridge.html`\n4. `deno test -A tests.ts`\n5. Check `test.ics` in the folder\n\nor\n\n1. Install deno\n2. Download the source code\n3. `deno run -A cli.ts`\n\nTip: `control + C` to force quit cli\n\n### Advanced Usage\n\n```typescript\nimport { DOMParser, genCalendar, parseTimetable } from \"https://deno.land/x/ebridge_timetable_parser@1.1.2/mod.ts\";\n\nconst document = new DOMParser().parseFromString(\n  Deno.readTextFileSync('XJTLU e-Bridge.html').toString(),\n  'text/html'\n)!;\n\nconst lessons = parseTimetable(document);\n\nconsole.table(lessons);\n\nconst calendar = genCalendar(lessons);\n\nconsole.log(calendar.toLines());\n\nDeno.writeTextFileSync('test.ics', calendar.toString());\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperongh%2Febridge-timetable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperongh%2Febridge-timetable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperongh%2Febridge-timetable/lists"}