Created
December 20, 2019 23:14
-
-
Save aerosol/5115dd1ad36b620bbd05b303771f7f09 to your computer and use it in GitHub Desktop.
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 | |
url1="https://en.bab.la/dictionary/english-polish/$1" | |
url2="https://en.bab.la/dictionary/polish-english/$1" | |
shoot() { | |
curl -s $1 | pup 'div.content > div > div > div > ul.sense-group-results > li a text{}' 2>&1 | | |
awk 'NF' | head -n 3 | grep -v EOF | |
} | |
cat <(shoot $url1) <(shoot $url2) | sort | uniq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment