gaffling / PHP-Grab-Favicon

🖼 Saves the favicon of the given URL and returns the image path.
http://suchmaschine.biz
MIT License
26 stars 6 forks source link

Command Line Switches and Other New Features #8

Closed LeeThompson closed 1 year ago

LeeThompson commented 1 year ago

Overview

By it's design, it appears that the original use case had this run as a web script whereas I am using it as a command line tool so it should be tested for the various environments/use cases.

Changes

Command Line Switches:

Other Features:

Other Items:

Usage Examples

C:\php\php.exe get-fav.php --list=sites.txt --path=icons --save --debug C:\php\php.exe get-fav.php --list=http://www.microsoft.com,http://www.google.com --path=icons --save

Notes

I've been testing pretty heavily, I've made some changes but nothing major, adding some more debug entries (mostly for me lol).

There is an issue where sometimes it takes a really long time for a download to fail but I think it's beyond the script and sometimes CURL is not honoring timeouts.

LeeThompson commented 1 year ago

I am working on some more features.

Stuff being worked on:

gaffling commented 1 year ago

I am so sorry - you are a very nice guy and I appreciate your work - my inbox is so full of unfinished work that I forgot to include your request :-( will do better in the future - thanks for your patience

LeeThompson commented 1 year ago

No worries!