This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Initializing the series that the loop will populate | |
community_episodes = [] | |
# For every season in the series-- range depends on the show | |
for sn in range(1,7): | |
# Request from the server the content of the web page by using get(), and store the server’s response in the variable response | |
response = get('https://www.imdb.com/title/tt1439629/episodes?season=' + str(sn)) | |
# Parse the content of the request with BeautifulSoup | |
page_html = BeautifulSoup(response.text, 'html.parser') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ $ := .root }} | |
{{ $page := .page }} | |
{{ $author := "" }} | |
{{ if .author }} | |
{{ $author = .author }} | |
{{ else }} | |
{{ $author = $page.Params.author }} | |
{{end}} |