Skip to content

Instantly share code, notes, and snippets.

@jiru
jiru / forvo_scraper.sh
Last active May 21, 2023 01:53 — forked from rshipp/forvo_scraper.sh
Scrape the highest rated MP3 from Forvo.com for a given word
#!/bin/bash
# Forvo scraper
language=${FORVO_LANG:-fr}
BASEURL="http://forvo.com/search/"
AUDIOURL="http://audio.forvo.com/audios/mp3/"
word=$1
if [[ -z $word ]]; then
echo "usage: "
echo "FORVO_LANG=languagecode ./forvo_scraper.sh myword"