so://phie

verbal

A mobile app for listening to radio stations from around the globe
git clone git://soophie.de/verbal

blob: 1b914915b6c57b1bb804654852035d2c1becc1f8 (249 bytes)[doc][blame][raw]

1#!/bin/bash

2

3query="$2"

4info=$(curl -sL "https://$1.wikipedia.org/w/api.php?action=query&prop=extracts&format=json&exintro=&redirects=1&titles=$query" | jq -r '.query.pages[].extract' | awk -v RS='<[^>]+>' -v ORS= '1' | tr -s '\n' ' ')

5echo "$info"