Skip to content

A simple CLI tool for checking HTML/Text email URLs.

Notifications You must be signed in to change notification settings

ierika/email-link-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Email Link Checker

A simple command-line link checker for HTML and text emails. That means it will only look for absolute URLs.

Supports HTTPS if certificates are installed.

A simple command-line link checker to aid my work. It simply checks for dead links or links that returns anything other than HTTP 200 (redirects are OK). All links that failed will be automatically opened in a browser.

How to install

  1. Download and install Python 3

  2. Install certificate for HTTPS support (optional). HTTPS pages will show as error if not installed. For Macs: Go to /Applications/Python 3.6/ and double click the executable called Install Certificates.command. For other OS's: Gooogle it.

  3. Once Python 3 has been installed. Install PIP(a Python package management system).

$ curl https://bootstrap.pypa.io/get-pip.py | python3
  1. Install requirements from requirements.txt.
$ cd /path/to/linkchecker/directory
$ python3 -m pip install -r requirements.txt

How to use

You could export its path and change permission to make it executable.

$ cd /path/to/linkchecker/directory
$ chmod u+x linkchecker.py
$ echo 'export PATH=${PATH}:/path/to/linkchecker' >> ~/.bash_profile
$ source ~/.bash_profile

After the PATH has been exported. We could now execute it anywhere. For URLs:

$ linkchecker https://www.domain.com/email_1.html https://www.domain.com/email_2.html

For files:

$ linkchecker /path/to/html/or/link/to/page /path/to/another/file

It also support wild cards.

$ linkchecker /path/to/html/*.html

You can also execute it directly by running it through python3 command.

$ cd /path/to/linkchecker/directory
$ python3 linkchecker path/to/html/file
$ cd /path/to/linkchecker/directory
$ python3 linkchecker http://path/to/web/page

About

A simple CLI tool for checking HTML/Text email URLs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages