a funding call, one short pagethe rulesthe deadlinethe form3 links to fileslinks to other pages come marked too
The run in 5 steps
List the files of the tender page
Fetch the page, then ask its record for the links of the kindfile. Each link has its address, its text, and the section of the page it is in. The list has the links of the page’s main content, so the menu and the footer of the site are not in it.
Read each file
Fetch the files in one batch. Each comes back as a record with its outline, so your agent knows which file is the terms of reference and which is the price schedule before it reads either.Check the page again each morning
Fetch the tender page with the fingerprint of its last record. If the page isunchanged, no link was added. If it changed, list its links again and compare them with the list you have. An address that is new is a new file.
Read the new file with your questions
Send the old files with their fingerprints and the new file with the questions that decide a bid.Request body of fetch_contents_batch
_URL with the address of a file, and each that ends in _FINGERPRINT with the fingerprint of that file’s last record.
A file whose bytes are the same comes back as unchanged, and no page of it is parsed. The new addendum comes back with the places of its highlights.
Part of the response, cut to the highlights of the addendum