Ignore:
Timestamp:
Oct 3, 2017, 5:01:32 AM (7 years ago)
Author:
iritscen
Message:

ValExtLinks improvements:

  • Now advises reader of external internal links.
  • The exceptions file now allows finer-grained exemption of a URL by matching to the specific page that contains it instead of exempting all occurrences of that URL (but the '*' wildcard will match all containing pages). Currently you can only list a URL once, however.
  • The exceptions file now allows external internal and potential intrawiki links to be exempted from the report.
  • The path to Google Chrome (for taking screenshots) is now external to the script, supplied as an argument after "--take-screenshots".
  • All of OniGalore's interwiki shortcuts are now recognized.
  • Protection against failed retrieval of redirect URL.
  • Better recognition of unimportant redirects (http->https, added ending slash).
File:
1 edited

Legend:

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

    r1066 r1070  
    33# Runs the Validate External Links script
    44# Arguments: --help, --links URL, --exceptions URL, --output DIR, --record-ok-links,
    5 # --suggest-snapshots, --take-screenshots, --start-url NUM, --end-url NUM, --upload FILE
     5# --suggest-snapshots, --take-screenshots DIR, --start-url NUM, --end-url NUM, --upload FILE
    66# Recommended rule:
    77# ----------------------------------------------------------------------------------------------
     
    1515REPORT_DIR="/path/to/ValExtLinks reports"
    1616UPLOAD_INFO="/path/to/Validate External Links/sftp_login.txt"
     17CHROME="/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary"
    1718
    1819
    19 # Run for limited number of URLs, record OK codes, upload
    20 #bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --record-ok-links --suggest-snapshots --end-url 20 --upload "$UPLOAD_INFO"
     20# Run for limited number of URLs, and record OK codes
     21#bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --record-ok-links --suggest-snapshots --end-url 70
    2122
    22 # Run with local extlinks and start/end URL, record OK codes
    23 #bash "$VALEXTLINKS" --links "$LINKS_LOCAL" --output "$REPORT_DIR" --record-ok-links --suggest-snapshots --start-url 70 --end-url 75
     23# Run with local extlinks and exceptions, start/end URLs, and record OK codes
     24#bash "$VALEXTLINKS" --links "$LINKS_LOCAL" --exceptions "$EXCEPT_LOCAL" --output "$REPORT_DIR" --record-ok-links --suggest-snapshots --start-url 3394 --end-url 3417
    2425
    25 # Normal run
     26# Run with unfinished screenshot feature
     27#bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --record-ok-links --take-screenshots "$CHROME"
     28
     29# Normal run with upload
    2630bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --suggest-snapshots --upload "$UPLOAD_INFO"
Note: See TracChangeset for help on using the changeset viewer.