machinatrix
A very silly Matrix bot written in C
Loading...
Searching...
No Matches
dlpo.h File Reference

Functions to process and navigate DLPO pages. More...

#include <stdbool.h>
#include "common.h"
#include <tidy.h>
Include dependency graph for dlpo.h:
This graph shows which files directly or indirectly include this file:

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.
 

Detailed Description

Functions to process and navigate DLPO pages.

http://www.priberam.pt/dlpo

Macro Definition Documentation

◆ DLPO_BASE

#define DLPO_BASE   "https://dicionario.priberam.org"

Base URL for the service.

Function Documentation

◆ dlpo_find_definitions()

TidyNode dlpo_find_definitions ( TidyNode node)

Finds the element containing the word definitions.

Parameters
nodeThe #resultados element.

◆ dlpo_print_definitions()

bool dlpo_print_definitions ( FILE * f,
TidyDoc doc,
TidyNode def )

Prints the definitions in plain text.

Parameters
fOutput stream.
docThe root document.
nodeThe element returned by dlpo_find_definitions.