mirror of
https://github.com/TxtDot/documentation.git
synced 2024-11-22 04:46:22 +03:00
Completed "how it works" paragraph
This commit is contained in:
parent
e6d89733c4
commit
10ad2a05c8
1 changed files with 5 additions and 3 deletions
|
@ -29,6 +29,8 @@ For now, engines are functions taking a URL as a parameter,
|
||||||
returning an object that contains extracted HTML and plain text, page title and language.
|
returning an object that contains extracted HTML and plain text, page title and language.
|
||||||
The object is rendered with ejs template (or, in `/api/parse`, just sent as JSON).
|
The object is rendered with ejs template (or, in `/api/parse`, just sent as JSON).
|
||||||
|
|
||||||
If a `?engine=` parameter wasn't passed, txtdot checks
|
If an `?engine=` parameter wasn't passed, but txtdot found
|
||||||
if the requested domain is assigned to a specific engine,
|
that a specific engine is assigned to the requested domain,
|
||||||
for example, "stackoverflow.com" -> "stackoverflow".
|
for example, `"stackoverflow.com": stackoverflow`,
|
||||||
|
it uses that engine to process the URL.
|
||||||
|
Otherwise, the page is parsed with the engine assigned to `*` (it's Readability).
|
||||||
|
|
Loading…
Add table
Reference in a new issue