Golang application to look up movie or TV show information using the OMDB API.
Download the executable in the Releases tab.
This tool requires an OMDB API key. You can set it in 2 ways:
A config.json
file present in the same directory as the executable, with the following structure:
{
"apiKey": "<your-OMDB-API-key>"
}
Configure your OMDB API key as an environment variable.
echo 'export OMDB_KEY="<apiKey>"' >> <terminalFile>
Regarding the <terminalFile>
, it depends on your terminal. If you're using
bash, change it for ~/.bashrc
, as for zsh, you can change for ~/.zshenv
.
go-movielookup.exe [-m | --movie | -s | --show | -h | --help | -v | --version]
-h, --help Prints the list of available commands.
-v, --version Prints the version of the application
-m, --movie TITLE [(YEAR)] Search for a movie
You can add the year in front of the movie title to search for a movie from a specific year. Look at the Examples section for more information.
-s, --show TITLE [S1 | S1 E1] Search for a TV show.
You can also search for a TV show season or TV show episode.
In case you want the TV show from a specific year, you can add the year in front of the show title. Look at the Examples section for more information.
$ go-movielookup.exe -m Avengers: Infinity War
$ go-movielookup.exe -m Ghostbusters (1984)
$ go-movielookup.exe -s Game of Thrones
$ go-movielookup.exe -s House of Cards (2013)
$ go-movielookup.exe -s Game of Thrones S1
$ go-movielookup.exe -s House of Cards (2013) S1
$ go-movielookup.exe -s Game of Thrones S1 E5
$ go-movielookup.exe -s House of Cards (2013) S1 E1
Found a bug? Have a feature you'd like to see added or something you'd like to see improved? You can do so by opening a new issue!
MIT © André Sousa