machinatrix
A very silly Matrix bot written in C
|
Functions to process and navigate DLPO pages. More...
#include <stdbool.h>
#include "common.h"
#include <tidy.h>
Go to the source code of this file.
Macros | |
#define | DLPO_BASE "https://dicionario.priberam.org" |
Base URL for the service. | |
Functions | |
TidyNode | dlpo_find_definitions (TidyNode node) |
Finds the element containing the word definitions. | |
bool | dlpo_print_definitions (FILE *f, TidyDoc doc, TidyNode def) |
Prints the definitions in plain text. | |
Functions to process and navigate DLPO pages.
#define DLPO_BASE "https://dicionario.priberam.org" |
Base URL for the service.
TidyNode dlpo_find_definitions | ( | TidyNode | node | ) |
Finds the element containing the word definitions.
node | The #resultados element. |
bool dlpo_print_definitions | ( | FILE * | f, |
TidyDoc | doc, | ||
TidyNode | def ) |
Prints the definitions in plain text.
f | Output stream. |
doc | The root document. |
node | The element returned by dlpo_find_definitions. |