1.3.1 • Published 10 months ago

web-clone v1.3.1

Weekly downloads
-
License
BSD-2-Clause
Repository
github
Last release
10 months ago

web-clone

Recursively clone a website with url rewrite in controlled manner.

npm Package Version

Features

  • Clone a website from cli
  • Recursively discover same-site links
  • Auto scroll to activate images with js-based lazy loading
  • Review which links to download or skip
  • Rewrite absolute urls into relative urls
  • Support next.js image proxy (/_next/image?url=xx&w=xx&q=xx)

Installation (optional)

You can install the package to lock the version:

npm i -g web-clone
# or
npm i -D web-clone

Usage

Usage with installation:

npx web-clone

Usage without installation:

npx -y web-clone

Environment Variables

The cli will ask for the variables interactively if they're not set.

The values are stored in .env file and auto restored in sub-sequence running.

Example setup:

SITE_DIR=./website
SITE_LIST_FILE=file-list.txt
CLONE_URL=https://example.net/
SCROLL_IN_DETAIL=false

License

This project is licensed with BSD-2-Clause

This is free, libre, and open-source software. It comes down to four essential freedoms [ref]:

  • The freedom to run the program as you wish, for any purpose
  • The freedom to study how the program works, and change it so it does your computing as you wish
  • The freedom to redistribute copies so you can help others
  • The freedom to distribute copies of your modified versions to others
1.3.1

10 months ago

1.2.0

11 months ago

1.1.5

12 months ago

1.1.4

12 months ago

1.1.3

12 months ago

1.3.0

11 months ago

1.1.1

1 year ago

1.1.2

1 year ago

1.1.0

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.0

1 year ago