From 02847d1c7440f0c79326363754e84951ccade9b2 Mon Sep 17 00:00:00 2001 From: Noopur <41565380+naman1303@users.noreply.github.com> Date: Tue, 20 Oct 2020 11:46:25 +0530 Subject: [PATCH 1/2] get_imdbtop.py : enumerate added for serial no enumerate added for serial no --- web_programming/get_imdbtop.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/web_programming/get_imdbtop.py b/web_programming/get_imdbtop.py index 3f30348b7331..98cd9063ac2f 100644 --- a/web_programming/get_imdbtop.py +++ b/web_programming/get_imdbtop.py @@ -1,7 +1,6 @@ import requests from bs4 import BeautifulSoup - def imdb_top(imdb_top_n): base_url = ( f"https://www.imdb.com/search/title?title_type=" @@ -15,6 +14,5 @@ def imdb_top(imdb_top_n): print(f"https://www.imdb.com{m.a.get('href')}") # movie's page link print("*" * 40) - if __name__ == "__main__": imdb_top(input("How many movies would you like to see? ")) From fa07d5e3e75462a2bbf3593e7f8bdb7c633db162 Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Tue, 20 Oct 2020 06:17:18 +0000 Subject: [PATCH 2/2] fixup! Format Python code with psf/black push --- web_programming/get_imdbtop.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web_programming/get_imdbtop.py b/web_programming/get_imdbtop.py index 98cd9063ac2f..3f30348b7331 100644 --- a/web_programming/get_imdbtop.py +++ b/web_programming/get_imdbtop.py @@ -1,6 +1,7 @@ import requests from bs4 import BeautifulSoup + def imdb_top(imdb_top_n): base_url = ( f"https://www.imdb.com/search/title?title_type=" @@ -14,5 +15,6 @@ def imdb_top(imdb_top_n): print(f"https://www.imdb.com{m.a.get('href')}") # movie's page link print("*" * 40) + if __name__ == "__main__": imdb_top(input("How many movies would you like to see? "))