LIRI Node Application - Homework 8
Submitted by Bon Crowder
Type node liri.js
and press enter. You will be prompted to choose one of four options.
- You'll be prompted with
For what account/song/movie?
. - Enter a twitter account for which you want the last 20 tweets. Do not use the
@
or the full url. Only use the actual account name. For example, for my twitter feed, you would enterMathFour
. - Press enter.
- This will show the last 20 tweets from that account and when they were created at in your terminal/bash window. It will also log these in the
log.txt
file. - If no twitter handle is provided, the program will default to "MathFour".
-
You'll be prompted with
For what account/song/movie?
. -
Enter a song name and press enter.
-
This will show the following information about the song in your terminal/bash window. It will also log these in the
log.txt
file.- Artist
- The song's name
- A preview link of the song from Spotify
- The album that the song is from
-
If no song is provided then the program will default to "The Sign" by Ace of Base
-
You'll be prompted with
For what account/song/movie?
. -
Enter a movie name and press enter.
-
This will show the following information about the movie in your terminal/bash window. It will also log these in the
log.txt
file.- Title of the movie
- Year the movie came out
- IMDB Rating of the movie
- Country where the movie was produced
- Language of the movie
- Plot of the movie
- Actors in the movie
- The URL to get more information about the movie
- If no movie is provided, the program will output data for the movie 'Mr. Nobody.'
-
Based on the information in the file
random.txt
, one of the three commands will be run. You do not need to input anything further. -
If you want to enter something different in the text file, use the format:
<command>, "<account/song/movie>"
where <command> is one of these:
my-tweets
spotify-this-song
movie-this
and <account/song/movie> is the name of the account for tweets, song for Spotify or movie for OMDB information