Show HN: Webclone.js – A simple tool to clone websites

(github.com)

21 points | by jadesee 2 days ago ago

7 comments

  • frankhsu 18 hours ago

    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.

  • ohans a day ago

    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/

    • jadesee a day ago

      Great feedback! Will get this fixed. Thank you.

  • khiqinsta a day ago

    can it also clone games? you know these web html games

    • jadesee a day ago

      I haven't tried. Would you be able to share some links so I could test?

  • moralestapia a day ago

    Hey thanks! This is quite handful, I often do this "manually", lol.

    • jadesee a day ago

      Glad you find it useful. Please feel free to share with your friends.