- Create an IMDb account and use the key to make some requests.
- Setup Http Client, Request and Response.
- Use RegEx to get the items in the body of the Http response.
- Show the items from body response.
- User provides his/her own IMDb-key
- User can select three different URLs (Top 250 Movies, Top 250 TVs and Most Popular Movies)
- Exceptions handling with Try-catch (if the IMDb-key is wrong) and IMDb-Rating doesn't exist (String is empty).
- not showing stars in terminal
- Already tried:
- Select cmd as default and chcp 65001
-
Use some library to manipulate images (ImageIO, Graphics2D and BufferedImage).
- increase image size
- change font (font family, size and style)
- add a text in the image
-
Read data using InputStream
- Manipulate image link data (instead thumbnail, full image)
- Refactoring the project
- App calls ClientHttp and ClientHttp gives the response.body back.
- App sends the body to ContentExtractor (IMDb or NASA):
- ContentExtractor calls JsonParser and gives the body.
- JsonParser takes the body and puts each element in the Json in a List. Finally JsonParser gives this List (attributeList) to ContentExtractor.
- ContentExtractor converts each element List into Content-Object and adds to another List (contents). This List is sent back to the App.
- App shows the content of the new List (contents) or sends to GeradoraDeFigurinhas.
1. Import Gson or another Json Parser
2. Handling Exceptions in ClientHttp
3. Streams and Lambda to map a list
4. Create a Enum for configuration (API URL and Extractors)
[https://www.baeldung.com/java-localization-messages-formatting](Messages formatting)