Skip to content

Instantly share code, notes, and snippets.

@flodolo
Created January 8, 2018 08:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flodolo/a718adb6b98d9e2465fa980479cc4b23 to your computer and use it in GitHub Desktop.
Save flodolo/a718adb6b98d9e2465fa980479cc4b23 to your computer and use it in GitHub Desktop.
Test neti.ee
#! /usr/bin/env bash
# Random words from https://randomwordgenerator.com/
words=(
cold
advertising
dress
common
side
hurl
chimney
surprise
personal
race
)
for word in "${words[@]}"
do
url="https://www.neti.ee/cgi-bin/otsing?query=${word}&src=web"
result=$(curl -s -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0" -I ${url} | head -n 1 | cut -d$' ' -f2)
echo "${url}: ${result}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment