Vellarity/html_links_to_files
Small script that downloads JS files from links in <script> tags and puts them in a folder
cc5c6a5d71a317ed4b0ad776842d1d0655f72d0a
A simple utility for scanning HTML files and downloading scripts from the links in <script>
tags.
This tool can help analyze linked scripts (checking security, style guide compliance) and automate saving local copies of files hosted on CDNs.
src
attributes - TODO!<script>
tag This is a command-line tool.
Download the appropriate version from the Releases tab and use it in the terminal.
Development was done using Zig 0.15—you can also build the app manually using zig build
.
-h, --help Display this help and exit -f, --file Path to HTML file with scripts-links. Use when -l doesn't set -l, --link Link to html page - search for scripts-links at given page. Use when -f doesn't set -o, --output Output path: > If ends with "/" - creates dir "scripts" at given path; > If ends with name - creates dir with that name at given path; > If doesn't set - - creates dir "scripts" at working path.
This is my first tool written in ZIG. I created it to learn the language more. (useful feeback is always welcome!)