From d363f47a406b7e46a409bf8d5a0bcd0a9f8065e7 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 22 Feb 2013 23:58:49 +0100 Subject: rm obsolete dict.leo.org scraper --- util/bin/dict.leo.org | 87 --------------------------------------------------- 1 file changed, 87 deletions(-) delete mode 100755 util/bin/dict.leo.org (limited to 'util') diff --git a/util/bin/dict.leo.org b/util/bin/dict.leo.org deleted file mode 100755 index 03f16b96..00000000 --- a/util/bin/dict.leo.org +++ /dev/null @@ -1,87 +0,0 @@ -#! /bin/sh -#### dict.leo.org version 2.0 beta 1 -set -euf - -cache_dir=/tmp/dict.leo.org/ -file="$cache_dir$*" - -url="http://dict.leo.org/?$*" - -# TODO check sanity of filename - -if test -d "$cache_dir" ; then - test -e "$file" || { curl --silent "$url" | tee "$file" ; } -else - curl --silent "$url" -fi | -sed 's/>\( *.\)/>\n\1/g' | sed -n ' - s/[[:space:]]/ /g - //,/<\/td>/b - //,/^<\/td>/b - //,/^ <\/table>/b - //,/<\/table>/b - /