Show HN: Webclone.js – A simple tool to clone websites(github.com)
github.com
Show HN: Webclone.js – A simple tool to clone websites
https://github.com/jademsee/webclone
12 comments
Really nice tool, Thank you!
I had confronted some issues after cloned the repo and installed the node_modules.
I'm using node.js v20, when I tried "node webclone.js --help" the terminal catch a error of "Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/fangyexu/Desktop/dev-s/_github/webclone/node_modules/yargs/index.mjs not supported."
Then I just throwed it to my Cursor and it help me solved the issue.
Then I just throwed it to my Cursor and it help me solved the issue.
Looks good! You could push to npm so that running it could be as easy as:
npx webclone URL (no repo cloning required)
Also, FYI, when running the example code
node webclone.js https://www.example.com/
It fails (at least for me) until I either install yt-dlp or ignore videos via:
node webclone.js https://www.example.com/
npx webclone URL (no repo cloning required)
Also, FYI, when running the example code
node webclone.js https://www.example.com/
It fails (at least for me) until I either install yt-dlp or ignore videos via:
node webclone.js https://www.example.com/
Hello. I have tested this and it indeed looks for yt-dlp at the beginning even though the site is not a video platform. I have logged the issue on GitHub and working on a fix. Thank you for the feedback!
Hey thanks! This is quite handful, I often do this "manually", lol.
Glad you find it useful. Please feel free to share with your friends.
Repo: https://github.com/jademsee/webclone
Feedback, issues, and PRs are very welcome.