From 7f431c4e2ae9aa14bb599b903d7e7b87aa239f56 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 5 Aug 2011 22:20:32 +0200 Subject: added galileo --- util/bin/wiki.firstpar | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'util/bin/wiki.firstpar') 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 -- cgit v1.2.3