HackingGate/Go-Web-Page-Fetcher

★ 0Forks 0GoGitHub ↗Compare

README

Web Page Fetcher

A simple Go tool to download and save the main content of a given webpage as an HTML file.

Features

  • Downloads the main content of a given webpage as an HTML file.
  • Option to display metadata of the fetched webpage, including the number of links, images, and the last fetched timestamp.

Build and use it directly

Ensure you have Go installed on your machine.

Build

make build

Usage

./fetch <options> <URLs>

Examples

./fetch https://www.example.com
./fetch --metadata https://www.example.com
./fetch https://www.example.com https://www.example.com/about
./fetch --metadata https://www.example.com https://www.example.com/about

Build and use it with Docker

Ensure you have Docker installed on your machine.

Build

make docker-build

Usage

make docker-run ARGS="<options> <URLs>"

Examples

make docker-run ARGS="https://www.example.com"
make docker-run ARGS="--metadata https://www.example.com"
make docker-run ARGS="https://www.example.com https://www.example.com/about"
make docker-run ARGS="--metadata https://www.example.com https://www.example.com/about"

Contributors

HackingGate

Issues