Discover Packages
github.com/hemzaz/lsweb
module
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: Aug 18, 2023
License: MIT
Opens a new window with license information.
README
README
¶
lsweb
lsweb
is a command-line tool designed to list and download files from websites. It acts as an ls
command for websites, providing a quick way to view and fetch downloadable content from a given URL.
Features
List downloadable links from a website.
Download files directly to the current working directory.
Supports simultaneous and sequential downloading.
Dynamic and colorful progress bar for each download.
Automatically extracts links from JSON, XML, and HTML content.
Special flag for fetching GitHub release assets.
Installation
Prerequisites
Go (version 1.16 or higher)
goreleaser
for building
Building from Source
Clone the repository:
git clone https://github.com/hemzaz/lsweb.git
Navigate to the project directory:
cd lsweb
Build using goreleaser
:
make build
Usage
lsweb [flags] <url>
Flags
-u
: URL to fetch links from
-f
: File to fetch links from
-o
: Output format (json, txt, num, html)
-filter
: Regex to filter links
-limit
: Limit the number of links to fetch
-ic
: Ignore certificate errors
-gh
: Fetch GitHub releases
-download
: Download the files
-list
: List the links (default: true)
-sim
: Download files simultaneously
Examples
List downloadable links from a website:
lsweb -u https://example.com
Download files from a website:
lsweb -download -u https://example.com
Download files simultaneously:
lsweb -download -sim -u https://example.com
List GitHub release assets:
lsweb -gh -u https://github.com/telegramdesktop/tdesktop/
https://github.com/hemzaz/lsweb/assets/1830915/e621f153-31b8-48e9-babd-ca174e1cd3ca
Contributing
Contributions are welcome! Please feel free to submit a pull request or open an issue.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Authored by: hemzaz the frogodile 🐸🐊
Expand ▾
Collapse ▴
Click to show internal directories.
Click to hide internal directories.