conjugaison-light

Obtenir les terminaisons des verbes français - retour accueil

git clone git://bebou.netlib.re/conjugaison-light
Log | Files | Refs | README |

commit bb9422c61d581870eae0bb048385c351f7598a3c
parent 561e5399f55920bcf6faf0577df6aff4542b22a9
Auterice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Mon, 10 Jun 2024 10:45:05 +0200

retrait dépendance à conjugaisonfrancaise.com

Diffstat:
Mcgi | 16----------------
1 file changed, 0 insertions(+), 16 deletions(-)

diff --git a/cgi b/cgi @@ -24,18 +24,6 @@ filter() { grep -wi "$1" | grep -wi "$2" | grep -wi "$3" } -verbe() { - curl -Ls -A "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:106.0) Gecko/20100101 Firefox/106.0" "https://www.conjugaisonfrancaise.com/$1.html" | - sed -En '/col-lg-7/,/col-lg-5/ p' | - sed "s:<b>:{:g; s:</b>:}:g" | - sed -E 's:<[^>]*>::g' | - sed -E 's:&nbsp;::g; s: :\n:g' | - sed -E 's:^ +::' | - grep -v '^$' | - grep -v "=" | - sed -n '5,$ p' -} - bdd=/var/bddconjugaison if [ -z "$bdd" ];then @@ -53,10 +41,6 @@ mot=${1:?"Il faut renseigner un mot"} mkdir -p "$bdd" -if [ ! -e "$bdd/$mot" ];then - verbe $1 > "$bdd/$mot" -fi - if [ "$color" = "true" ];then cat "$bdd/$mot" | tabulate | colorate | filter "$2" "$3" "$4" | column -ts ' ' else