This Python script scrapes movie data from MYmovies.it using BeautifulSoup
, generating a dataset of movies. Currently, I've filtered the movies by nationality=Italian and year.
The dataset generated is saved in CSV format for further analysis, containing information such as movie name, director, cast, duration, release date, genre, production, ratings, summaries, etc.
- Set the
year
andnationality
variables in themain()
function to specify the year and nationality of the movies to scrape. Adding additional filters is pretty straightforward. - Run the script to generate the dataset.
- Access the generated CSV file containing movie data for analysis.