#!/bin/sh

#   Module       : Atilf
#   Commande     : TlfiCurlToWiki
#   Author       : Ducloy
#   Date         : 2021


curl https://www.cnrtl.fr/lexicographie/$1 2>/dev/null \
  | SxmlUnIndent  \
  | SxmlSelect -s html/body/div/div@id=main_content/div@id=content/table/tr/2/div@id=contentbox/descendant::span -p @s1 \
  | grep tlf_cexemple | TlfiToWicri

