Skip to content

Commit

Permalink
fix: The etymology section containing a lot more data than it should.
Browse files Browse the repository at this point in the history
  • Loading branch information
vxern committed Nov 9, 2024
1 parent 4f81e1e commit 205a52c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.).
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/constants/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 205a52c

Please sign in to comment.