示例#1
0
 def test_movie_scraper_04(self):
     movie_scraper = MovieScraper(movie_title='Vicky Cristina Barcelona')
     movie_scraper.extract_metadata()
     print(movie_scraper.metadata)
示例#2
0
 def test_movie_scraper_03(self):
     movie_url = 'https://www.rottentomatoes.com/m/marriage_story_2019'
     movie_scraper = MovieScraper(movie_url=movie_url)
     movie_scraper.extract_metadata()
     self.assertEqual(movie_scraper.metadata['Rating'], 'R')
示例#3
0
 def test_movie_scraper_01(self):
     movie_scraper = MovieScraper(movie_title='Manhattan')
     movie_scraper.extract_metadata()
     movie_genres = movie_scraper.movie_genre
     self.assertIn('drama', movie_genres)
示例#4
0
 def test_movie_scraper_02(self):
     movie_url = 'https://www.rottentomatoes.com/m/manhattan'
     movie_scraper = MovieScraper(movie_url=movie_url)
     movie_scraper.extract_metadata()
     movie_genres = movie_scraper.movie_genre
     self.assertNotIn('Kids&Family', movie_genres)
示例#5
0
 def test_movie_scraper_04(self):
     movie_scraper = MovieScraper(movie_title='VICKY CRISTINA BARCELONA')
     movie_scraper.extract_metadata()
     print(movie_scraper.metadata)