Created
January 8, 2018 08:14
-
-
Save flodolo/a718adb6b98d9e2465fa980479cc4b23 to your computer and use it in GitHub Desktop.
Test neti.ee
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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