{"id":19204374,"url":"https://github.com/vxern/dexonline-scraper","last_synced_at":"2025-05-12T15:45:38.258Z","repository":{"id":176698970,"uuid":"656864210","full_name":"vxern/dexonline-scraper","owner":"vxern","description":"🇷🇴 A performant, battle-tested scraper for dexonline.ro to fetch information about words in the Romanian language.","archived":false,"fork":false,"pushed_at":"2025-02-19T22:12:48.000Z","size":171,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-08T19:50:13.630Z","etag":null,"topics":["battle-tested","definitions","dexonline","dictionary","etymology","examples","expressions","inflection","javascript","language","node","parser","romanian","scraper","typescript"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/dexonline-scraper","language":"TypeScript","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/vxern.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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,"zenodo":null}},"created_at":"2023-06-21T19:57:49.000Z","updated_at":"2025-02-19T22:12:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"097c6700-2d7f-4335-b86c-e66c68c740b3","html_url":"https://github.com/vxern/dexonline-scraper","commit_stats":null,"previous_names":["vxern/dexonline-scraper"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vxern%2Fdexonline-scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vxern%2Fdexonline-scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vxern%2Fdexonline-scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vxern%2Fdexonline-scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vxern","download_url":"https://codeload.github.com/vxern/dexonline-scraper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253767631,"owners_count":21961144,"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":["battle-tested","definitions","dexonline","dictionary","etymology","examples","expressions","inflection","javascript","language","node","parser","romanian","scraper","typescript"],"created_at":"2024-11-09T13:07:34.991Z","updated_at":"2025-05-12T15:45:38.248Z","avatar_url":"https://github.com/vxern.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## A tiny, battle-tested, performant and documented scraper for dexonline.ro.\n\n### Usage\n\nTo start using the scraper, first install it using the following command:\n\n```ts\nnpm install dexonline-scraper\n```\n\nThe simplest way of using the scraper is as follows:\n\n```ts\nimport * as Dexonline from \"dexonline-scraper\";\n\nconst results = await Dexonline.get(\"word\");\n```\n\nAlternatively, you can parse HTML of the website directly, bypassing the fetch\nstep as follows. Notice that, as opposed to `get()`, `parse()` is synchronous:\n\n```ts\nimport * as Dexonline from \"dexonline-scraper\";\n\nconst results = Dexonline.parse(html);\n```\n\nYou can configure the mode according to which the parser will match results to\nthe search term, ensuring that only terms identical to the search term are\nreturned:\n\n```ts\nimport * as Dexonline from \"dexonline-scraper\";\n\nconst results = await Dexonline.get(\"word\", { mode: \"strict\" });\n```\n\nYou can modify the results returned by Dexonline using flags:\n\n```ts\nimport * as Dexonline from 'dexonline-scraper';\nimport { DictionaryFlags } from 'dexonline-scraper';\n\nconst results = await Dexonline.get('word', {\n  flags: \n    | DictionaryFlags.UseCedillas // Use 'ş' and 'ţ' instead of 'ș' and 'ț'.\n    | DictionaryFlags.MatchDiacritics // Do not return words where the only difference is a diacritic.\n    | DictionaryFlags.UsePreReformOrthography // Use 'î' instead of 'â' in all cases except for the word 'român' and its derivatives.\n    | DictionaryFlags.SearchOnlyNormativeDictionaries // Return results obtained only from the DEX and/or the DOOM.\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvxern%2Fdexonline-scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvxern%2Fdexonline-scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvxern%2Fdexonline-scraper/lists"}