Skip to content

Instantly share code, notes, and snippets.

@FdelMazo
Created August 26, 2020 14:51
Show Gist options
  • Save FdelMazo/13a18a9ffdb6edd1852d51255dd0f23c to your computer and use it in GitHub Desktop.
Save FdelMazo/13a18a9ffdb6edd1852d51255dd0f23c to your computer and use it in GitHub Desktop.
Searcher for film reviews/articles/posters/scripts/fanart and everything relevant for a movie.
#!/usr/bin/env bash
if [[ "$1" == "-h" || "$1" == "--help" ]]
then
echo """
Searcher for film reviews/articles/posters/scripts/fanart #!/usr/bin/env bash
if [[ "$1" == "-h" || "$1" == "--help" ]]
then
echo """
Searcher for film reviews/articles/posters/scripts/fanart and everything relevant for a movie.
Run ./FilmParaphernalia.sh <Movie between brackets> and a bunch of websites will be listed.
Example, just listing websites:
./FilmParaphernalia.sh "The Dark Knight"
If you add the -f/--force flag the websites will be opened (keep in mind, they are a lot).
Example, opening websites:
./FilmParaphernalia.sh -f "Roma 2018"
"""
exit
fi
pelicula=${@//-f/}
pelicula=${pelicula//--force/}
pelicula_mas=${pelicula// /+}
pelicula_espacio=${pelicula// /%20}
custom_google_search(){
search_terms=$1
site=$2
url="https://www.google.com/search?q="
url=$(echo $url'site:')
url=$(echo $url$site%20)
url=$(echo $url$search_terms)
echo $url
}
sites=(
$(custom_google_search $pelicula_espacio https://www.criterion.com/current/)
https://www.rogerebert.com/search?q=$pelicula_mas
$(custom_google_search $pelicula_espacio https://www.bfi.org.uk/news-opinion/sight-sound-magazine/reviews-recommendations)
https://www.rollingstone.com/results/\#?q=review%20$pelicula_espacio
$(custom_google_search $pelicula_espacio https://www.theguardian.com/film/)
$(custom_google_search $pelicula_espacio https://www.slashfilm.com/)
https://thefilmera.com/?s=$pelicula_mas
https://www.filmcomment.com/?s=$pelicula_mas
http://reverseshot.org/search/results/?q=$pelicula_masand everything relevant for a movie.
Run ./FilmParaphernalia.sh <Movie between brackets> and a bunch of websites will be listed.
Example, just listing websites:
./FilmParaphernalia.sh "The Dark Knight"
If you add the -f/--force flag the websites will be opened (keep in mind, they are a lot).
Example, opening websites:
./FilmParaphernalia.sh -f "Roma 2018"
"""
exit
fi
pelicula=${@//-f/}
pelicula=${pelicula//--force/}
pelicula_mas=${pelicula// /+}
pelicula_espacio=${pelicula// /%20}
custom_google_search(){
search_terms=$1
site=$2
url="https://www.google.com/search?q="
url=$(echo $url'site:')
url=$(echo $url$site%20)
url=$(echo $url$search_terms)
echo $url
}
sites=(
$(custom_google_search $pelicula_espacio https://www.criterion.com/current/)
https://www.rogerebert.com/search?q=$pelicula_mas
$(custom_google_search $pelicula_espacio https://www.bfi.org.uk/news-opinion/sight-sound-magazine/reviews-recommendations)
https://www.rollingstone.com/results/\#?q=review%20$pelicula_espacio
$(custom_google_search $pelicula_espacio https://www.theguardian.com/film/)
$(custom_google_search $pelicula_espacio https://www.slashfilm.com/)
https://thefilmera.com/?s=$pelicula_mas
https://www.filmcomment.com/?s=$pelicula_mas
http://reverseshot.org/search/results/?q=$pelicula_mas
https://brightlightsfilm.com/?s=$pelicula_mas
https://nofilmschool.com/search/$pelicula_espacio
https://filmschoolrejects.com/?s=$pelicula_mas
$(custom_google_search $pelicula_espacio https://www.imsdb.com/)
https://tvtropes.org/pmwiki/search_result.php?q=$pelicula_mas
https://fanart.tv/?s=$pelicula_mas
http://download-soundtracks.com/?s=$pelicula_mas
http://thedirectorscommentary.tumblr.com/search/$pelicula_espacio
http://www.artofthetitle.com/search.do?q=$pelicula_mas
https://www.reddit.com/r/discussionarchive/search?q=$pelicula_espacio
$(custom_google_search $pelicula_espacio http://www.impawards.com/)
https://posterspy.com/?s=$pelicula_mas
https://alternativemovieposters.com/?s=$pelicula_mas
https://mondotees.com/search?q=$pelicula_mas
https://www.moviestillsdb.com/search?query=$pelicula_mas
https://film-grab.com/?s=$pelicula_mas
)
if [[ "$1" == "-f" || "$1" == "--force" ]]
then
for i in "${sites[@]}"; do
xdg-open "$i"
done
else
for i in "${sites[@]}"; do
echo "$i"
done
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment