defuddle-cli
defuddle-cli copied to clipboard
Moved to the main defuddle repo. Command line utility to extract clean html, markdown and metadata from web pages.
## Description When parsing certain pages, Defuddle outputs raw CSS instead of the actual page content. The underlying issue is a CSS parsing error in jsdom, but Defuddle's error handling...
Here's a snippet of sample output produced by `bunx defuddle-cli parse article.html --json -o def.json` (same is true when running with `npx`) ```json [36m"metaTags":[39m [ { [36m"name":[39m null, [36m"property":[39m null,...
Hello, I've encountered an issue with the defuddle-cli tool where images in the output are linked using relative paths instead of complete, accessible URLs. This creates difficulties when attempting to...
I sometimes get a warning message "Initial parse returned very little content, trying again" before the actual JSON result. The warning is useful, however it means the user can't expect...
Command: ``` npm run build npm start parse https://www.henrikkarlsson.xyz/p/why-we-ended-up-homeschooling -- -o test.md -m ``` Output: ``` > [email protected] start > node dist/index.js parse https://www.henrikkarlsson.xyz/p/why-we-ended-up-homeschooling -o test.md -m Output written to...
when trying parse a link, the cli errors ```bash defuddle parse https://www.kalzumeus.com/2014/11/07/doing-business-in-japan/ --md file:///Users/fabian/.local/share/mise/installs/node/22.14.0/lib/node_modules/defuddle-cli/dist/index.js:674 globalThis.navigator = window.navigator; ^ TypeError: Cannot set property navigator of # which has only a getter...
running the install instructions does not work ```bash npm install -g @defuddle/cli npm error code E404 npm error 404 Not Found - GET https://registry.npmjs.org/@defuddle%2fcli - Not found npm error 404...