Web scraping: Difference between revisions
m
→{{header|Mathematica}}
(Updated to work with Nim 1.4: added "newHttpClient". Changed code to work with Rosetta page as the original URL no longer works. Added output.) |
|||
Line 1,247:
<pre>May. 16, 20:17:28 UTC Universal Time</pre>
=={{header|Mathematica}}/{{header|Wolfram Language}}==
<lang mathematica>test = StringSplit[Import["http://tycho.usno.navy.mil/cgi-bin/timer.pl"], "\n"];▼
Extract[test, Flatten@Position[StringFreeQ[test, "UTC"], False]]</lang>▼
▲test = StringSplit[Import["http://tycho.usno.navy.mil/cgi-bin/timer.pl"], "\n"];
▲Extract[test, Flatten@Position[StringFreeQ[test, "UTC"], False]]
=={{header|MATLAB}} / {{header|Octave}}==
|