diff options
author | root <root@krebs> | 2011-08-05 22:20:32 +0200 |
---|---|---|
committer | root <root@krebs> | 2011-08-05 22:20:32 +0200 |
commit | 1707cce54aaf36606302d762591fb6e8ad79a381 (patch) | |
tree | e26e33fbaf6bcf2812f36e6ea23b89e01f7c187a | |
parent | 7adc117f1a7693f2693c845460d43170b97efc57 (diff) |
added galileo
-rwxr-xr-x | util/bin/galileo | 2 | ||||
-rwxr-xr-x | util/bin/wiki.firstpar | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/util/bin/galileo b/util/bin/galileo new file mode 100755 index 00000000..8ca7d834 --- /dev/null +++ b/util/bin/galileo @@ -0,0 +1,2 @@ +#!/bin/sh +./wiki.firstpar http://de.m.wikipedia.org/wiki/::Random | xargs ./naturalvoices.att 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 |