Skip to content

Commit

Permalink
Merge pull request #5 from vxern/4-the-scraper-is-returning-a-lot-mor…
Browse files Browse the repository at this point in the history
…e-data-than-it-should-for-the-etymology-section

fix: The etymology section containing a lot more data than it should.
  • Loading branch information
vxern authored Nov 9, 2024
2 parents 4f81e1e + 205a52c commit 35087a0
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 35087a0

Please sign in to comment.