Find knowledge base article(s) by searching for keywords in the title e.g. type linux in the search box below
Find knowledge base article(s) by browsing the subject categories of articles
Technology quick references, cheatsheets, user manuals etc.
Shop Online through ShopifyLite
Tutorials on various IT applications.
Search Title    (UL:0 |SS:f)

Scripting >> Python >> 3.x >> Tools Written in Python >> linkchecker >> How to install and run linkcheker in Linux and Windows

 

Reference : https://linkchecker.github.io

Linux

 

## To install linkchecker on a Linux environment with python3 & pip3

[root@localhost]# pip3 install linkchecker
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting linkchecker
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/f0/b8/a0d3fc5e64c5146bec9013aef4a894d8888244abd82c7b7d3bd0abdc90a3/LinkChecker-10.0.1-py3-none-any.whl (267kB)
    100% |████████████████████████████████| 276kB 4.1MB/s
Collecting requests>=2.4 (from linkchecker)
  Downloading https://files.pythonhosted.org/packages/29/c1/24814557f1d22c56d50280771a17307e6bf87b70727d975fd6b2ce6b014a/requests-2.25.1-py2.py3-none-any.whl (61kB)
    100% |████████████████████████████████| 61kB 9.9MB/s
Collecting dnspython>=2.0 (from linkchecker)
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/f5/2d/ae9e172b4e5e72fa4b3cfc2517f38b602cc9ba31355f9669c502b4e9c458/dnspython-2.1.0-py3-none-any.whl (241kB)
    100% |████████████████████████████████| 245kB 5.0MB/s
Collecting pyxdg (from linkchecker)
  Cache entry deserialization failed, entry ignored
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/ea/13/de39ddf4f9f9cea0c7684cd54a50d79c97ea99c9f6aed798fd13d0bd4609/pyxdg-0.27-py2.py3-none-any.whl (49kB)
    100% |████████████████████████████████| 51kB 10.5MB/s
Collecting beautifulsoup4 (from linkchecker)
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/d1/41/e6495bd7d3781cee623ce23ea6ac73282a373088fcd0ddc809a047b18eae/beautifulsoup4-4.9.3-py3-none-any.whl (115kB)
    100% |████████████████████████████████| 122kB 9.5MB/s
Collecting chardet<5,>=3.0.2 (from requests>=2.4->linkchecker)
  Downloading https://files.pythonhosted.org/packages/19/c7/fa589626997dd07bd87d9269342ccb74b1720384a4d739a1872bd84fbe68/chardet-4.0.0-py2.py3-none-any.whl (178kB)
    100% |████████████████████████████████| 184kB 6.4MB/s
Collecting certifi>=2017.4.17 (from requests>=2.4->linkchecker)
  Downloading https://files.pythonhosted.org/packages/5e/a0/5f06e1e1d463903cf0c0eebeb751791119ed7a4b3737fdc9a77f1cdfb51f/certifi-2020.12.5-py2.py3-none-any.whl (147kB)
    100% |████████████████████████████████| 153kB 7.6MB/s
Collecting urllib3<1.27,>=1.21.1 (from requests>=2.4->linkchecker)
  Downloading https://files.pythonhosted.org/packages/23/fc/8a49991f7905261f9ca9df5aa9b58363c3c821ce3e7f671895442b7100f2/urllib3-1.26.3-py2.py3-none-any.whl (137kB)
    100% |████████████████████████████████| 143kB 8.2MB/s
Collecting idna<3,>=2.5 (from requests>=2.4->linkchecker)
  Downloading https://files.pythonhosted.org/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl (58kB)
    100% |████████████████████████████████| 61kB 6.8MB/s
Collecting soupsieve>1.2; python_version >= "3.0" (from beautifulsoup4->linkchecker)
  Cache entry deserialization failed, entry ignored
  Downloading https://files.pythonhosted.org/packages/02/fb/1c65691a9aeb7bd6ac2aa505b84cb8b49ac29c976411c6ab3659425e045f/soupsieve-2.1-py3-none-any.whl
Installing collected packages: chardet, certifi, urllib3, idna, requests, dnspython, pyxdg, soupsieve, beautifulsoup4, linkchecker
Successfully installed beautifulsoup4-4.9.3 certifi-2020.12.5 chardet-4.0.0 dnspython-2.1.0 idna-2.10 linkchecker-10.0.1 pyxdg-0.27 requests-2.25.1 soupsieve-2.1 urllib3-1.26.3

## script location

/usr/local/bin/linkchecker


## test run

/usr/local/bin/linkchecker https://www.myfaqbase.com

 

 

Windows

 

## assuming pip3 already installed in your Windows computer

pip3 install linkchecker


## the binary for the user is located at

Directory of C:\Users\<yourusername>\AppData\Roaming\Python\Python38\Scripts

01/18/2021  10:18 PM            25,002 linkchecker
               1 File(s)         25,002 bytes


## test run with output to file with html format

cd C:\Users\<yourusername>\AppData\Roaming\Python\Python38\Scripts
python3 linkchecker -F html https://www.myfaqbase.com


the output will be in linkchecker-out.html

 

 

[ © 2008-2021 myfaqbase.com - A property of WPDC Consulting ]