{"id":20858389,"url":"https://github.com/extractus/extractus","last_synced_at":"2025-08-02T23:08:11.204Z","repository":{"id":172661658,"uuid":"648107975","full_name":"extractus/extractus","owner":"extractus","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-25T11:57:12.000Z","size":1062,"stargazers_count":14,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-07T04:35:01.163Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/extractus.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2023-06-01T08:19:18.000Z","updated_at":"2025-03-02T11:51:21.000Z","dependencies_parsed_at":"2024-03-30T17:28:40.416Z","dependency_job_id":"99ac030f-b182-46fe-8555-36d574161acd","html_url":"https://github.com/extractus/extractus","commit_stats":null,"previous_names":["extractus/workspace","extractus/extractus"],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/extractus/extractus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extractus%2Fextractus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extractus%2Fextractus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extractus%2Fextractus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extractus%2Fextractus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/extractus","download_url":"https://codeload.github.com/extractus/extractus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extractus%2Fextractus/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268470799,"owners_count":24255391,"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-08-02T02:00:12.353Z","response_time":74,"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":[],"created_at":"2024-11-18T04:45:49.869Z","updated_at":"2025-08-02T23:08:11.173Z","avatar_url":"https://github.com/extractus.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Installation\n\n```shell\npnpm i @extractus/extractus\n```\n\n## Usage\n\n#### Extract html with [default extractors, transformer, selector](packages/defaults)\n\n```typescript\nimport { extract } from '@extractus/extractus'\n\nextract(htmlString, options)\n```\n\n## Reference\n\n### Extractor\n\nExtract all strings from the html\nExample: [packages/defaults/extractors.ts](packages/defaults/extractors.ts)\n\n```typescript\ntype Extractor =\n  | ((input: string, context?: ExtractContext) =\u003e string | undefined)\n  | ((input: string) =\u003e string | undefined)\n```\n\n### Transformer\n\nTransform the extracted strings. Such as normalize urls, filter blank strings\nExample: [packages/defaults/transformer.ts](packages/defaults/transformer.ts)\n\n```typescript\ntype Transformer =\n  | ((input: Iterable\u003cstring | undefined\u003e, context?: ExtractContext) =\u003e Iterable\u003cstring | undefined\u003e)\n  | ((input: Iterable\u003cstring | undefined\u003e) =\u003e Iterable\u003cstring | undefined\u003e)\n```\n\n### Selector\n\nSelect one value from transformed values. Such as the first title, string to date object\nExample: [packages/defaults/selector.ts](packages/defaults/selector.ts)\n\n```typescript\ntype Selector =\n  | ((input: Iterable\u003cstring\u003e, context?: ExtractContext) =\u003e T)\n  | ((input: Iterable\u003cstring\u003e) =\u003e T)\n```\n\n## Development\n\nUsing [pnpm](https://pnpm.io) for manage workspace\n\n- Clone repo\n- Open project in terminal or IDE\n- Run `pnpm i` at the root of project\n\n## Roadmap\nhttps://github.com/orgs/extractus/projects/2/views/1\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fextractus%2Fextractus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fextractus%2Fextractus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fextractus%2Fextractus/lists"}