Web scraping: Difference between revisions
Content added Content deleted
(→Robust: Avoid obsolete ! notation for opening command pipe.) |
|||
Line 1,668:
If the web page changes too much, the query will fail to match. TXR will print the word "false" and terminate with a failed exit status. This is preferrable to finding a false positive match and printing a wrong result. (E.g. any random garbage that happened to be in a line of HTML accidentally containing the string UTC).
<lang txr>@(next @(open-command `
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final"//EN>
<html>
|