Permalink
Browse files

* gramota.ru: beautified

  • Loading branch information...
l29ah committed Aug 2, 2011
1 parent cae62d9 commit f7099b8de701eef65e610799b5b5077e1cad6c3b
Showing with 6 additions and 2 deletions.
  1. +6 −2 gramota.ru/gramota
@@ -1,3 +1,7 @@
#!/bin/sh
# TODO: beautify
curl -s "http://gramota.ru/slovari/dic/?all=x&word=`echo -n $1 | iconv -t cp1251 | urlencode`" | iconv -f cp1251 | sed -e 's#</\?noindex>##' | sed -ne '/http:\/\/www.gramota.ru\/slovari\/info\/lop\//,/<div class="clear"></p' | sed -e '/^ *$/d' | w3m -T text/html -dump
curl -s "http://gramota.ru/slovari/dic/?all=x&word=$(echo -n "$1" | iconv -t cp1251 | urlencode)" |
iconv -f cp1251 |
sed -e 's#</\?noindex>##' |
sed -ne '/http:\/\/www.gramota.ru\/slovari\/info\/lop\//,/<div class="clear"></p' |
sed -e '/^ *$/d' |
w3m -T text/html -dump

0 comments on commit f7099b8

Please sign in to comment.