100-Days-Of-Code/Web Development Python Projects/Starting Code - 100 movies to watch start/README.md
2024-11-22 21:46:35 +05:30

29 lines
1.1 KiB
Markdown

## 100 Movies that You Must Watch
# Objective
Scrape the top 100 movies of all time from a website. Generate a text file called `movies.txt` that lists the movie titles in ascending order (starting from 1).
The result should look something like this:
```
1) The Godfather
2) The Empire Strikes Back
3) The Dark Knight
4) The Shawshank Redemption
... and so on
```
The central idea behind this project is to be able to use BeautifulSoup to obtain some data - like movie titles - from a website like Empire's (or from, say Timeout or Stacker that have curated similar lists).
### ⚠️ Important: Use the Internet Archive's URL
Since websites change very frequently, **use this link**
```
URL = "https://web.archive.org/web/20241007205559/https://www.empireonline.com/movies/features/best-movies-2/"
```
from the Internet Archive's Wayback machine. That way your work will match the solution video.
(Do *not* use https://www.empireonline.com/movies/features/best-movies-2/ which I've used in the screen recording)
# Solution
You can find the code from my walkthrough and solution as a downloadable .zip file in the course resources for this lesson.