fill-spidered-result ( spider spider-result -- )


Vocabulary
spider.private

Inputs
spideran object
spider-resultan object


Outputs
None

Definition


:: fill-spidered-result ( spider spider-result -- )
spider-result url>> :> url f url spider spidered>> set-at
[ url http-get ] benchmark :> ( headers html fetched-in ) [
url url-html? [
html parse-html spider currently-spidering>> over
find-all-links normalize-hrefs
] [ f { } ] if
] benchmark :> ( parsed-html links processed-in )
spider-result headers >>headers fetched-in >>fetched-in
parsed-html >>parsed-html links >>links
processed-in >>processed-in now >>fetched-at drop ;