My site has the first page as a login, In order to check the links I need
to hit the first page and login. Ideally, I'd like to pass the user
password info in either through a cookie or through the linkcheckerrc so
that I don't have to manually enter the password in everytime.
I can't figure out how to do this. The examples aren't clear enough. I've
struggled with this for an hour. Unfortunately, my python isn't strong
enough for me to figure out how the code is parsing the conf file.
Here's what I'm executing
https://<url> --config=linkcheckerrc --output=html --cookiefile=cookie -C>
Here's the contents of cookie
Here's what's in linkcheckerrc
# Different user/password pairs for different URLs can be provided.
# Entries are a triple (URL regular expression, username, password),
# separated by whitespace.
# If the regular expression matches, the given user/password pair is used
# for authentication. The commandline options -u,-p match every link
# and therefore override the entries given here. The first match wins.
# At the moment, authentication is used for http[s] and ftp links.
# Note that passwords are optional. If any passwords are stored here,
# this file should not readable by other users.
# ^https?://www\.example\.com/~calvin/ calvin mypass
# ^ftp://www\.example\.com/secret/ calvin
# if the website requires a login the URL and optionally the user and
# password CGI fieldnames can be provided.
loginurl=<URL> <username> <pass>
# The name of the user and password CGI field
# Optionally any additional CGI name/value pairs. Note that the default
# values are submitted automatically.
I get the following
WARNING MainThread warning: no user/password authentication data found for
WARNING MainThread warning: disabling login URL
And, of course, I don't get logged in.