Crawler

The crawler is in the Services Configuration › Crawler menu.

The crawler (the crawler service) reads the regulators’ sites and RSS feeds, finds the regulatory publications there and hands them to the common library, the one every tenant reads (see Library). Every day at 13:00 it also sends a summary mail, the digest, to a list of recipients.

The page is titled Crawler: “The regulatory publications found on the regulators’ sites and feeds, and handed to the common library of every tenant.”

Like the whole console, it is for platform administrators only. The crawler itself checks that the caller is one (see Rights).

Note

When the crawler does not answer, each list says so: “The crawler did not answer. Is it running?”.

Header and last-run strip

The Run now button starts a crawl of every source switched on. While the crawl runs, it reads Crawling… and stays disabled. The message “Crawl started. This page follows it until it ends.” confirms the start; when a crawl is already running, the page answers “A crawl is already running.”.

Under the header, a strip sums up the last run:

  • its status (see Last runs);
  • “Last run on …” and its duration;
  • “… new publication(s)”;
  • “Next run on …”, or “Not scheduled”.

The page follows the runs live: the crawler reports each change of a run, and the console reads the list again at once (see Events and calls). While a run is going, the page also reads the runs every 30 seconds, in case the live updates are down. When a run ends, the publications and the sources are read again.

The page has seven tabs: Publications, Sources, Runs & schedule, Feeds, Recipients, Sent digests and Docling.

Publications

The Publications (n) tab lists the publications the crawler found, in pages of 25, 50 or 100.

The filters are:

  • the search (Title, publisher, reference…);
  • where the publications stand with the library: All, Sent, Skipped, Not sent, Indexed by the library, Failed in the library, Awaiting the library.

The columns are:

  • Publication: the title (or the reference), linking to the publication, then the publisher, the type and the reference;
  • Published;
  • Detected: when the crawler found it;
  • Sent to the library: the date it was sent and what the library made of it, Indexed (the date in a tooltip), Failed (the reason in a tooltip) or Pending (“The library has not said yet whether it indexed it.”); a skipped publication shows Skipped with the reason, one never sent Not sent;
  • Summary: see Summaries for the daily mail;
  • a Send to the library again button.

With no publication, the list reads “No publication found yet: run a crawl, or add feeds.”.

Send to the library again

A publication, sent, skipped or not sent, can be handed to the library again:

  • the Send to the library again button of its row sends it at once;
  • after ticking rows, Send to the library again (n) first asks: “Send n publication(s) to the library again? The library downloads each one and indexes it if it does not hold it yet.”.

The outcome shows above the list: “n publication(s) sent to the library.”, or, when some could not be handed over to the message broker, how many failed, to try again.

Summaries for the daily mail

The library can summarise, with a language model, the publications it indexed. The summaries go into the 13:00 digest.

A summary can be asked for a publication that is indexed and was never summarised, or whose summary failed. Its box is ticked in the Summary column; the bar above the list offers:

  • Tick all (n): every publication of the page that can be summarised;
  • Untick;
  • Start the summaries (n) · ~x tokens, which asks: “Have the library summarise n publication(s)? About x input tokens, plus those of the answer.”.

The Summary column shows where each summary stands: Not asked, In progress, Summarised (the date and the model in a tooltip) or Failed (the reason in a tooltip). It also shows the tokens estimated before the request, then the input and output tokens used, and the cost in dollars when the library gives it. The bar adds up the summaries of the page.

Read the summary opens the summary as the digest carries it.

While a summary is in progress, the page reads the summaries again every 10 seconds.

Sources

The Sources (n) tab lists every source the crawler reads: the regulators’ sites (Site) and the RSS feeds (Feed). “A source switched off is left out of the runs; « Run » crawls it alone, switched off or not.”

The columns are:

  • Source: its name, linking to its site, and its kind;
  • Last run: the date, then how many publications it listed, or Failed with the error; “Not read yet” for a source never read;
  • Last success;
  • Crawled: the switch that turns the source on or off from the next run;
  • Run: crawls this source alone; the button is disabled while a crawl runs.

Refresh reads the list again.

Runs & schedule

The Runs & schedule tab holds the schedule, the crawl settings and the log of runs.

Schedule

  • When to run (cron): six fields, “second minute hour day-of-month month day-of-week”, read in the time zone shown. For example 0 0 1 * * * runs every day at 01:00.
  • Four shortcuts fill the field: Every day at 01:00 (0 0 1 * * *), Weekdays at 06:30 (0 30 6 * * MON-FRI), Every 6 hours (0 0 */6 * * *), Every hour (0 0 * * * *).
  • Run on this schedule: unticked, the crawler does not run on its own; use Run now instead.

Under the form are the next run, and who last changed the schedule and when. Save is only active when the schedule changed and the cron has six fields. It applies at once.

How the crawler crawls

Field Values Effect
Look back (months) 1 to 120 How far back a crawl may go; a source stops sooner, at a page of publications already known.
Pause between requests (ms) 0 to 10,000, in steps of 100 Between two requests to the same site. Raise it if a site starts refusing the crawler.
Timeout (s) 1 to 300 For connecting to a site and for each read; a site that does not answer in time fails its source.

The three values are whole numbers. Save is only active when a value changed and all are within their bounds. The settings apply from the next run.

Last runs

The table shows the last 30 runs; Refresh reads it again.

  • Started;
  • Started by: Crawler start, Schedule or Run now, with the user; a run limited to one source shows “only « name »”;
  • Status: Running, Succeeded, Partly failed, Failed or Interrupted;
  • Duration;
  • New publications.

A row unfolds to show:

  • Sources that failed, each with its error;
  • What each source cost and gave: per source, Requests, Time, Listed, New, then what the library made of them, Indexed, Failed, Pending. A source that made at least 20 requests and found no new publication shows Nothing for many requests. For older runs, which did not record these figures, the page only shows the Publications listed by each source;
  • Publications found: the run’s new publications, as links.

Feeds

The Feeds (n) tab lists the RSS feeds the crawler reads at each run, besides the regulators’ sites. A feed is switched off in the Sources tab; it then shows Off. An icon marks a feed with an include or exclude pattern.

The columns are Name, Publisher, Format and URL, then the edit and delete buttons.

Add or edit a feed

Add a feed opens the form:

  • Name (required);
  • Publisher (required), e.g. ECB, BIS;
  • URL (required), starting with http:// or https://;
  • Keep only the items matching (optional);
  • Leave out the items matching (optional).

The two patterns are regular expressions, case-insensitive, of at most 1,000 characters. Each is looked for in the title, in each category and in the description. An item of the feed is kept when the first is found in one of them (or is empty) and the second is found in none. A pattern the crawler refuses is flagged under its field.

Test reads the feed once, without saving it, and shows how many items it lists, how many the patterns keep, and how many of the first ones are documents the library can index. Then come the Kept items, with the reason for those the library would skip, and the items Dropped by the patterns, each with its reason.

Save is only active when the three required fields are filled and the URL is valid. A new feed is read from the next run.

Delete a feed

Deleting asks: “Delete the feed « name »? Publications already found stay in the library.”.

Recipients

The Recipients (n) tab manages who receives the digest. “The digest goes out every day at 13:00 to the enabled recipients, one mail each.”

Warning

The mails go through the notification service, which accepts certain domains only. An address outside those domains is refused: send it a test mail to check it.

The header shows how many recipients are enabled out of the total, and offers Refresh and Add a recipient.

The columns are:

  • Email address;
  • Name;
  • Regulators: those whose publications the recipient receives, or All regulators;
  • Receives the digest: the switch that turns the recipient on or off;
  • Last change: the date and who made it;
  • the Edit, Send a test mail and Delete buttons.

Deleting asks: “Remove … from the digest recipients?”.

The add or edit form holds:

  • Email address (required): a valid address, of at most 254 characters, not already in the list (“This address is already in the list”);
  • Name (optional), at most 100 characters;
  • Regulators: All regulators, “those the crawler adds later included”, or Some only, picked in Choose the regulators (at least one). In that second case, the recipient gets only these regulators’ publications, and no mail on a day without any.

Sent digests

The Sent digests tab lists, day by day and newest first, every digest the crawler sent, in pages of 20, 50 or 100. The columns are Day, Mails, Publications (and how many are indexed), Recipients and Sent at.

For each day:

  • Open the digest shows the mails as they went out; when the digest went out in several mails, a switcher moves from one to the other;
  • Resend to an address sends the mails again as they were sent, to this address alone, which need not be a recipient; the recipients’ list is left as it is. When the day has several mails, Mails chooses Every mail of the day (n) or a single one. An address outside the domains the notification service allows receives nothing;
  • Copy the public link (when the browser allows it) and Open the public page give access to the digest’s public page; “No public page” otherwise.

Preview the next digest shows the digest as it would go out now: when it goes out, how many publications and recipients, or “The digest is off” with how many publications are waiting. The library may still index or summarise publications before then; Refresh reads the preview again.

Docling

The Docling tab follows the library’s conversion queue: docling-serve converts the library’s documents to Markdown, a few at a time, and the others wait their turn. The conversion covers both the common documents and the clients’ documents.

The tab shows:

  • whether docling-serve is up: docling-serve answers, with the most conversions it runs at a time, or docling-serve does not answer: conversions are then on hold and the queued documents keep their place;
  • Queued, split between common and client documents;
  • Converted and Failed (no Markdown) in the last hour;
  • Average time per document, over the last hour;
  • the Estimated end of the queue;
  • the Converting now (n of max) table: Document, File, Library (Common or Client), Started, Since.

The tab updates live, and reads the queue every 10 seconds. When the library does not answer, it keeps the figures of the last read and says so. A library that does not serve its queue yet shows “Not available yet”.

The documents themselves (validating the Markdown, relaunching docling) are managed in Library.