mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
GitHub Action formats our code with psf/black (#1569)
* GitHub Action formats our code with psf/black @poyea Your review please. * fixup! Format Python code with psf/black push
This commit is contained in:
@ -3,8 +3,10 @@ import requests
|
||||
|
||||
|
||||
def imdb_top(imdb_top_n):
|
||||
base_url = (f"https://www.imdb.com/search/title?title_type="
|
||||
f"feature&sort=num_votes,desc&count={imdb_top_n}")
|
||||
base_url = (
|
||||
f"https://www.imdb.com/search/title?title_type="
|
||||
f"feature&sort=num_votes,desc&count={imdb_top_n}"
|
||||
)
|
||||
source = BeautifulSoup(requests.get(base_url).content, "html.parser")
|
||||
for m in source.findAll("div", class_="lister-item mode-advanced"):
|
||||
print("\n" + m.h3.a.text) # movie's name
|
||||
|
Reference in New Issue
Block a user