Web scraping: Difference between revisions

Content added Content deleted
Line 1,017: Line 1,017:
end
end
isa(s, Requests.Response) || return (s, false)
isa(s, Requests.Response) || return (s, false)
t = match(r"(?<=<BR>)(.*?UTC)", readall(s))
t = match(r"(?<=<BR>)(.*?UTC)", readstring(s))
isa(t, RegexMatch) || return (@sprintf("raw html:\n %s", readall(s)), false)
isa(t, RegexMatch) || return (@sprintf("raw html:\n %s", readall(s)), false)
return (t.match, true)
return (t.match, true)