Skip to content

ty4z2008/image-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A page image downloader

This project inspired from https://github.com/kkdai/project52

Logic

  • parse the crawle url and download directory from command args
  • get the body of response
  • use regex match image url with suffix
  • use go concurrency download the image to your directory
  • exit

Usage

go run cmd/run.go -d images -uri https://github.com -cookie "cookie string"