summaryrefslogtreecommitdiffstats
path: root/util/bin/wiki.firstpar
diff options
context:
space:
mode:
authorroot <root@krebs>2011-08-05 22:20:32 +0200
committerroot <root@krebs>2011-08-05 22:20:32 +0200
commitf5008acfc0ce4b23eaea557ee40831ebd0e3a6f4 (patch)
tree00ea0db5125796a596d7b73e6c1fcf47832e4c1c /util/bin/wiki.firstpar
parentf4902a06d375027797cd5a56d4cd39888c4dc2bd (diff)
added galileo
Diffstat (limited to 'util/bin/wiki.firstpar')
-rwxr-xr-xutil/bin/wiki.firstpar6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/bin/wiki.firstpar b/util/bin/wiki.firstpar
index df66f707..d2181f1b 100755
--- a/util/bin/wiki.firstpar
+++ b/util/bin/wiki.firstpar
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
set -euf
A=Mozilla
@@ -15,9 +15,9 @@ for x in \
done
# ensure query is ready
-#(cd "$pwd/../.." && git submodule update --init)
+(cd "$pwd/../.." && git submodule update --init)
query() {
node "$(readlink -f "$pwd/../../submodules/github/visionmedia/query")" "$@"
}
-curl -sS -A "\${A-Mozilla}" "$1" | query 'p' 'first' | w3m -T text/html -dump
+curl -b redirect=seen -L -e http://de.wikipedia.org/wiki/$RANDOM -sS -A "\${A-Mozilla}" "$1" | query 'p' 'first' |w3m -T text/html -dump| cut -c -750