hw5
This commit is contained in:
@@ -70,11 +70,23 @@ The primary objectives of this assignment are:
|
||||
|
||||
Utilize JSoup to parse the HTML file located in the resources folder at this path: `src/main/resources/Movies.html` and extract relevant information such as:
|
||||
|
||||
- `<span class="movie-title">` = for movie titles
|
||||
- `<h3 class="movie-title">` = for movie titles
|
||||
- `<span class="movie-rating">` = for movie ratings
|
||||
- `<span class="movie-year">` = for movie release years
|
||||
|
||||
**Note: The span tags are nested within other tags and div closures. Look out for unneeded text like '/10' inside elements.**
|
||||
**Note: The elements are nested within other tags and div closures. Look out for unneeded text like '/10' inside elements.**
|
||||
|
||||
Here is a general structure of the HTML you will be working with:
|
||||
|
||||
```html
|
||||
<div class="col-md-4 movie">
|
||||
<h3 class="movie-title">The Godfather</h3>
|
||||
<div class="movie-info">
|
||||
<strong>Rating:</strong> <span class="movie-rating">9.2/10</span><br>
|
||||
<strong>Year:</strong> <span class="movie-year">1972</span><br>
|
||||
</div>
|
||||
</div>
|
||||
```
|
||||
|
||||
5. **Implement Sorting Functionality:**
|
||||
|
||||
@@ -89,15 +101,7 @@ The primary objectives of this assignment are:
|
||||
|
||||
7. **Visualize Results:**
|
||||
|
||||
- Clearly present the sorted movie data.
|
||||
|
||||
## Bonus Objectives (For Advanced Users) 🌟
|
||||
|
||||
To enhance your project further:
|
||||
|
||||
- Expand data extraction to additional websites, such as [Oscar Winning Films](https://www.scrapethissite.com/pages/ajax-javascript/).
|
||||
- Develop a user interface for interactive querying and sorting.
|
||||
- Utilize SQL or NoSQL databases to store the scraped data.
|
||||
- Clearly present the sorted movie data using the `Main` class you implement.
|
||||
|
||||
## Notes 📝
|
||||
|
||||
@@ -106,7 +110,6 @@ Here are some important points to keep in mind:
|
||||
- There is a `Help` folder located at the root directory of the project which contains the sorted movies each by different priorities. It is there just so you can see what your output should look like in the end.
|
||||
- The unit tests are provided to assist you in understanding the project requirements. Your final grade is not solely dependent on their results; they are meant to aid your learning process. Remember to enable GitHub Actions for the test workflow to run on GitHub.
|
||||
- Feel free to leverage ChatGPT for learning web scraping and resolving any challenges that you may not find solutions to on the internet. Utilize its capabilities to enhance your understanding and overcome obstacles effectively.
|
||||
**But it is strictly prohibited to use ChatGPT or any other AI generative model for completing any section of this assignment. Failure to comply will result in a score of 0 without any warnings.**
|
||||
|
||||
## Evaluation 🧐
|
||||
|
||||
@@ -132,10 +135,9 @@ If you have any further questions or need clarification, do not hesitate to reac
|
||||
|
||||
## TA Tutorial Videos 🎥
|
||||
|
||||
To help you succeed in this assignment, our TA team has recorded dedicated tutorial videos covering the essential topics. Please watch these before starting:
|
||||
To help you succeed in this assignment, our TA team has recorded dedicated tutorial videos covering the essential topics. Please watch these before starting. You can access the folder containing the tutorial videos here:
|
||||
|
||||
- [Tutorial: Basics of HTML & CSS]([INSERT_LINK_HERE])
|
||||
- [Tutorial: Web Scraping in Java using JSoup]([INSERT_LINK_HERE])
|
||||
- [TA Tutorial Videos - Movies Folder](https://drive.meshcomp.ir/d/3e149a8347a841f6bb81/)
|
||||
|
||||
## Additional Resources 📚
|
||||
|
||||
|
||||
Reference in New Issue
Block a user