diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e4c1b8..29dc449 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.0.2-patch.1 + +- Fixed the etymology section being broken after the structure of Wiktionary's HTML changed. + # 0.0.2 - Added option to override the links used by the scraper to allow specifying custom URLs (in case of proxies, etc.). diff --git a/package.json b/package.json index 838c4d9..ee55f91 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "wiktionary-scraper", "description": "A lightweight scraper to fetch information about words in various languages from Wiktionary.", "license": "MIT", - "version": "0.0.2", + "version": "0.0.2-patch.1", "main": "./dist/index.js", "types": "./dist/index.d.ts", "type": "module", diff --git a/src/constants/selectors.ts b/src/constants/selectors.ts index 325a48f..92d3653 100644 --- a/src/constants/selectors.ts +++ b/src/constants/selectors.ts @@ -10,7 +10,7 @@ export default { }, }, }, - section: "h1, h2, h3, h4, h5, h6", + section: ".mw-heading, .mw-heading2, .mw-heading3, .mw-heading4, .mw-heading5, .mw-heading6", definitions: { heading: { heading: "p",