Ignore:
Timestamp:
Sep 6, 2020, 10:51:22 PM (4 years ago)
Author:
iritscen
Message:

ValExtLinks: Changed --skip-archive-links argument to --check-archive-links because the default should be to skip them. Val now uploads all three formats of its report, and links to the RTF and TXT versions from the HTML one. Val can also now tell whether each upload succeeded. A report with no link issues will print a placeholder message in that section of the report. Fixed a bug where Val thought a link should be an interwiki link when it was really a link to an archive.org snapshot from said wiki.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Validate External Links/validate_external_links.command

    r1142 r1144  
    33# Runs the Validate External Links script
    44# Arguments: --help, --links URL, --exceptions URL, --output DIR, --record-ok-links, --show-added-slashes,
    5 # --show-https-upgrades, --show-yt-redirects, --suggest-snapshots, --skip-archive-links, --take-screenshots FILE,
     5# --show-https-upgrades, --show-yt-redirects, --suggest-snapshots, --check-archive-links, --take-screenshots FILE,
    66# --timeout NUM, --start-url NUM, --end-url NUM, --upload FILE
    77# Recommended rule:
     
    2626
    2727# Run with local extlinks and exceptions, start/end URLs, record OK codes, and don't upload
    28 #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
     28#bash "$VALEXTLINKS" --links "$LINKS_LOCAL" --exceptions "$EXCEPT_LOCAL" --output "$REPORT_DIR" --record-ok-links --suggest-snapshots --start-url 1 --end-url 25
    2929
    3030# Run with unfinished screenshot feature, no upload
     
    3232
    3333# Normal run with no upload
    34 #bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --suggest-snapshots --skip-archive-links --timeout 10
     34#bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --suggest-snapshots --timeout 10
    3535
    3636# Normal run
    37 bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --suggest-snapshots --skip-archive-links --timeout 10 --upload "$UPLOAD_INFO"
     37bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --suggest-snapshots --timeout 10 --upload "$UPLOAD_INFO"
Note: See TracChangeset for help on using the changeset viewer.