Ignore:
Timestamp:
Jul 13, 2020, 1:57:00 AM (4 years ago)
Author:
iritscen
Message:

Added option to not validate archive.org URLs, as those are unlikely to go bad, and we have an increasing number of them. Val now reports trivial redirect settings in Config section.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Validate External Links/Run validate_external_links.command

    r1118 r1135  
    22
    33# Runs the Validate External Links script
    4 # Arguments: --help, --links URL, --exceptions URL, --output DIR, --record-ok-links,
    5 # --suggest-snapshots, --take-screenshots FILE, --start-url NUM, --end-url NUM, --upload FILE
     4# Arguments: --help, --links URL, --exceptions URL, --output DIR, --record-ok-links, --show-added-slashes, --show-https-upgrades, --show-yt-redirects,
     5# --suggest-snapshots, --skip-archive-links, --take-screenshots FILE, --start-url NUM, --end-url NUM, --upload FILE
    66# Recommended rule:
    7 #|----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- -----|
     7# |----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- -----|
    88
    99# Set variables for any arguments we might use below
     
    2222
    2323# Run with start/end URLs, and record OK codes
    24 #bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --record-ok-links --suggest-snapshots --start-url 120 --end-url 140
     24#bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --record-ok-links --suggest-snapshots --start-url 210 --end-url 235
    2525
    2626# Run with local extlinks and exceptions, start/end URLs, and record OK codes
    27 #bash "$VALEXTLINKS" --links "$LINKS_LOCAL" --exceptions "$EXCEPT_LOCAL" --output "$REPORT_DIR" --record-ok-links --suggest-snapshots --start-url 120 --end-url 140
     27#bash "$VALEXTLINKS" --links "$LINKS_LOCAL" --exceptions "$EXCEPT_LOCAL" --output "$REPORT_DIR" --record-ok-links --suggest-snapshots --skip-archive-links --start-url 1 --end-url 25
    2828
    2929# Run with unfinished screenshot feature
     
    3434
    3535# Normal run
    36 bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --suggest-snapshots --upload "$UPLOAD_INFO"
     36bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --suggest-snapshots --skip-archive-links --upload "$UPLOAD_INFO"
Note: See TracChangeset for help on using the changeset viewer.